Dv
Size: a a a
Dv
Dv
KS
git branch -u
не сработает, пишет нет ветки masterDv
git branch -u
не сработает, пишет нет ветки mastergit status
работает и говорит, что ветка есть :)KS
git status
работает и говорит, что ветка есть :)Dv
cat .git/refs/heads/HEAD
тебе её покажет.KS
Dv
Dv
KS
KS
Dv
Dv
git checkout master
Dv
Dv
KS
AS
git init
, git remote add origin [url]
git fetch
, а вот git pull
пишет ошибку There is no tracking information for the current branch.Я так понимаю, он просит подвязать локальную ветку к удалённой, но
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
git branch -u origin/master
не помогает, потому что локальной ветки master
как бы ещё нет, потому что нет ни одного коммита. Как быть? Может я что-то вообще не так делаю?git reset --hard origin/master
KS
git reset --hard origin/master
git init
и git remote add
$ git reset --hard origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
KS
git checkout master
$ git checkout master
error: pathspec 'master' did not match any file(s) known to git
AS
git init
и git remote add
$ git reset --hard origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'