Go back to previous git branch shortcut git checkout - takes you right back to the previously checked out branch. Tweet