Skip to content

Instantly share code, notes, and snippets.

@chopmo
Created December 18, 2012 13:41
Show Gist options
  • Save chopmo/4328048 to your computer and use it in GitHub Desktop.
Save chopmo/4328048 to your computer and use it in GitHub Desktop.
# Switch to previous branch
> git checkout dev
Switched to branch 'dev'
> git checkout master
Switched to branch 'master'
> git checkout -
Switched to branch 'dev'
# on git 1.7.7+, stash untracked files
`git stash -u`
# stage changes via your editor
`git add -e`
# Show tips of branches
git branch -avv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment