6omsbq
Last Updated: October 30, 2017
·
41
· Minkihn

Git: use - to refer to the branch you were previously on

Use - to refer to your previously selected Git branch

You may already know you can use - with cd to go back to your previous current path cd -.

Well, same goes for a couple of handy git commands, e.g.:
1. checkout: git checkout - (very useful when you're dancing between two branches)
2. merge: git merge - [--no-ff](very useful, but be careful)

Say Thanks
Respond