Last Updated: February 25, 2016·
Quick & easy switch between GIT branches using `git checkout -`
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
Use GNU Stow for your dotfiles
Have a fresh tip? Share with Coderwall community!
Post a tip
Best #Unix Authors
Sponsored by #native_company# — Learn More