Skip to content

Instantly share code, notes, and snippets.

@d0zingcat
Last active December 20, 2017 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d0zingcat/f10b423f9a873a4895727b734c994301 to your computer and use it in GitHub Desktop.
Save d0zingcat/f10b423f9a873a4895727b734c994301 to your computer and use it in GitHub Desktop.
git notes
commands scope common user cases
git reset Commit Discard commits in a private branch or throw away uncommited changes
git reset File Unstage a file
git checkot Commit switch between branches or inspect old snapshot
git checkout File Discard changes in the working directory
git revert commit Undo commits in a public branch
git revert File 不支持
git push -u origin master persistence on next push, "origin master" can be ommitted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment