Skip to content

Instantly share code, notes, and snippets.

@rm--
Last active March 28, 2017 14:13
Show Gist options
  • Save rm--/f7709a24f5e5f5e9849e to your computer and use it in GitHub Desktop.
Save rm--/f7709a24f5e5f5e9849e to your computer and use it in GitHub Desktop.
git checkout to previous branch

perhabs you know

cd -

to go to the directory where you come from.

git can do that too!

git checkout -

to go to the branch where you come from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment