На момент написания этой статьи команда git pull
дает ответ. Когда я пытаюсь git pull
без каких-либо дополнительных аргументов, он предоставил мне следующую информацию:
rockyinde.desktop% git pull
remote: Counting objects: 143, done.
remote: Compressing objects: 100% (95/95), done.
remote: Total 143 (delta 75), reused 87 (delta 23)
Receiving objects: 100% (143/143), 29.59 KiB | 0 bytes/s, done.
Resolving deltas: 100% (75/75), completed with 33 local objects.
From ssh://git.rockyinde.com:<port>/code/myproject
2d232ds..1hw1f84 frontline -> rockyremote/frontline
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=<remote>/<branch> develop
Итак, все, что вам нужно посмотреть (в приведенном выше выводе):
From ssh://git.rockyinde.com:<port>/code/myproject
2d232ds..1hw1f84 frontline -> rockyremote/frontline
, которая указывает вашу remote
/ branch
информацию. И так, в моем случае это:
git pull rockyremote frontline