Developers work with many branches at the same time because during any single day they review others' pull requests, try new crazy things, work on new features/bug-fixes and also fix somebody else's PRs. All this forces a combination of git stash [pop|save]
, git fetch
, git checkout [-f]
and again git stash [pop|apply]
. No matter if this is done by command line or with a tool the problem of having only one copy of the code is an ugly constrain.
First clone your existing repository as a bare repo (a repository without files) and do it in a .git
directory.