Skip to content

Instantly share code, notes, and snippets.

@berniefitz82
Last active October 12, 2021 23:50
Show Gist options
  • Save berniefitz82/d7994f81ab1a6e64231229e2fc965c82 to your computer and use it in GitHub Desktop.
Save berniefitz82/d7994f81ab1a6e64231229e2fc965c82 to your computer and use it in GitHub Desktop.
Common git commands
git stash - to stash your work
git stash pop - to re-apply stashed changes
git stash apply - applies your stash to current branch and keeps changes in your stash (so you use on multiple branches)
git pull origin develop - merge develop into feature branch
git reset --hard HEAD~1 - if you've merged and want to roll back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment