git fetch only for current branch

前端 未结 5 1728
刺人心
刺人心 2021-02-14 06:33

I know that I can fetch any remote branch to any local branch, but is there also some kind of shortcut to fetch just from the tracked remote branch to the current tracking local

5条回答
  •  臣服心动
    2021-02-14 07:38

    Git is a decentralized VCS. Whe you do a fetch, you're synch'ing the two repositories entirely. Branches aren't nothing but labels attached on specific commits. I guess you mean git fetch which doesn't do any merges or stuff like that to any particular branches.

    http://www.kernel.org/pub/software/scm/git/docs/git-fetch.html

提交回复
热议问题