DEV Community

Forgot the name of your recently used git branch? Gotcha fam!

Ravi Ojha on June 12, 2019

Add this alias to your terminal's rc or profile file. For most users, it is .bashrc or .bash_profile in the home directory. Fire up a new terminal ...
Collapse
 
shayd16 profile image
Shayne Darren

You could also do a

git checkout -

to switch to your most recently used branch