Last Updated: February 25, 2016
·
403
· LaTradia

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'