Git: checkout previous branch
Just like you can cd -
to get to the previous directory, you can git checkout -
to get to the previous branch you were in.
$ git checkout feature
Switched to branch 'feature'
$ git checkout -
Switched to branch 'master'
$
Written by Stefano B.
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#