Switch Between Git Branches Easily

I recently ran across a great tip from Kevin Griffin for how to quickly switch from your current git branch to your previous one:

Instead of typing out the full name of the branch when using git checkout, you can simply specify � (minus or dash) to refer to the previous branch.

Now think about how you’re going to put all those saved keystrokes to good use.

If you liked this post, consider subscribing to email updates about my new posts, or sharing it on Hacker News.

Keyboard shortcuts

?
Show this help
Esc
Close this help or an open menu
n
Next (newer) post: Referencing Common Values Between Apps/Projects
p
Previous (older) post: Minimal ASPNET Core Web API
Tab
Move between links and buttons (Shift+Tab to go back)