Skip to content

Instantly share code, notes, and snippets.

@jbienkowski311
Created July 25, 2016 16:33
Show Gist options
  • Save jbienkowski311/eb88e8c245934a320ca12de0f9b5920a to your computer and use it in GitHub Desktop.
Save jbienkowski311/eb88e8c245934a320ca12de0f9b5920a to your computer and use it in GitHub Desktop.
git commit --ammend # add commit to previous one
git stash # all staging files stash them for later use
git stash pop # reverse git stash
git stash list # list of all stashes
git reset/checkout -- filename
# move last commit to new branch
git checkout -b issue-xyz
git checkout develop
git reset --hard HEAD~1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment