Skip to content

Instantly share code, notes, and snippets.

@aburaihan-dev
Last active August 30, 2017 05:28
Show Gist options
  • Save aburaihan-dev/a3cbc65d03574b9afae2f6daa4222a1b to your computer and use it in GitHub Desktop.
Save aburaihan-dev/a3cbc65d03574b9afae2f6daa4222a1b to your computer and use it in GitHub Desktop.
Git cheat codes
Git Reset file changes upto last commit.
git reset HEAD --hard
git clean -fd
https://www.atlassian.com/git/tutorials/resetting-checking-out-and-reverting
https://stackoverflow.com/questions/13781388/git-discard-all-changes-and-pull-from-upstream/13781416#13781416
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment