Fetch without checkout
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.
Comments: 2
-
27 Apr, '22
Thomas Michielsdoesn't this happen automatically in gitkraken? fetch without checkout just updates your remote heads, and this is done implicitly by gitkraken
-
10 May, '22
JulienYes but you can only do a fetch on all branches, not on just one specific branch if you don't want to fetch everything. On projects with lots of branches this can be painful to have all branches locally.