Quick & easy switch between GIT branches using `git checkout -`
Similar to cd -
command used to switch to the last used working directory, the same works with GIT:
$ git checkout dev
Switched to branch 'dev'
$ git checkout master
Switched to branch 'master'
$ git checkout -
Switched to branch 'dev'
Written by Michał Lüth
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#