Current Behavior:
When double-clicking a branch in the side menu under remotes (e.g., origin/master), a pop up will be show which prompts me to create a new local branch, even if a local branch already exists and is tracking this exact remote branch.
Expected Behavior:
If the remote branch is already tracked locally, double-clicking it should simply switch to the existing local branch. GitFork does exactly this: when a local branch exists for a remote branch, it automatically chooses the (first) local branch that tracks it.
Reasoning:
When dealing with multiple origins and several branches, navigation can become confusing. I prefer clicking the remote branch I want to check out because then I know exactly which origin and branch I am targeting. Implementing this would make navigating between branches much easier. If a remote branch is currently not tracked, that has been ckicked, the default "New Branch" pop up should be shown.
On top, users can still use the right-click menu option Create New Local Branch Here if they want to create multiple local branches referring to the same remote.
The right click menu option Create New Local Branch Here can be used, if one likes to create more than one local branch which refers to this remote.
Current Behavior:
When double-clicking a branch in the side menu under remotes (e.g.,
origin/master), a pop up will be show which prompts me to create a new local branch, even if a local branch already exists and is tracking this exact remote branch.Expected Behavior:
If the remote branch is already tracked locally, double-clicking it should simply switch to the existing local branch. GitFork does exactly this: when a local branch exists for a remote branch, it automatically chooses the (first) local branch that tracks it.
Reasoning:
When dealing with multiple origins and several branches, navigation can become confusing. I prefer clicking the remote branch I want to check out because then I know exactly which origin and branch I am targeting. Implementing this would make navigating between branches much easier. If a remote branch is currently not tracked, that has been ckicked, the default "New Branch" pop up should be shown.
On top, users can still use the right-click menu option
Create New Local Branch Hereif they want to create multiple local branches referring to the same remote.The right click menu option
Create New Local Branch Herecan be used, if one likes to create more than one local branch which refers to this remote.