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. |
Last active
December 20, 2017 16:24
-
-
Save d0zingcat/f10b423f9a873a4895727b734c994301 to your computer and use it in GitHub Desktop.
git notes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment