Fetch without checkout

10 votes

It would be nice to be able to fetch a branch from remote without checking it out (without switching on that branch) just like the git command "git fetch <remote> <srcBranch>:<destBranch>".

One use case of this is to enable the "git flow" on a project : it is required to have the master branch check out locally, but very often you can work on another branch and don't want to mess everything by switching on the master just to enable the git flow (this is particularly painful and time consuming if you have lots of submodules).
There is also the use case when you want to merge or rebase to or from a branch which you don't have locally.

Under consideration Suggested by: Julien Upvoted: 07 Mar Comments: 2

Comments: 2