Discuss This Topic
There are 0 comments in this discussion.
url: http://robots.thoughtbot.com/post/26417669058/git-checkout-and-see
Handy shortcut for both git checkout [branch_name] of git checkout - which will take you to last branch used. So if you are going between two branches, you can quickly toggle between them without typing their names.
Apparently "cd -" works the same for directories. I did not know that.
I'm also a fan of adding the following to my ~/.gitconfig:
[alias]
st = status
ci = commit
co = checkout
br = branch
Nice and short "git co -" after that.