Similarly to cd -, git checkout - and git merge - will checkout/merge the previous branch respectively.
git checkout -
git merge -
For example, if you are in dev/new.modal and you run git checkout master. Then, git merge - will merge dev/new.modal to master.
git checkout master
Thanks! I had no idea that would work. This will make merging and moving around branches much easier.
I must admit I didn't even know about cd - going to the last used directory; I'll definitely be using both.
Didn't know merge could be used with - as well. Super pro tip thanks Bro!