Last active
December 22, 2023 15:59
-
-
Save raineorshine/5128563 to your computer and use it in GitHub Desktop.
Cheatsheet: git commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git tag # list available tags | |
| git tag -l v1.4.2.* # search for specific tags | |
| git tag -a v1.4 -m 'version 1.4' # create an annotated tag | |
| git show v1.4 # show the tag data of a specific tag | |
| git tag v1.4 # create a lightweight tag | |
| git reset --hard HEAD # reset to latest of current branch | |
| git reset --hard 0c6de32 # reset to specific commit | |
| git clean -f # remove untracked files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excellent, thanks for posting this!