for studing git
- git add [. | file name]
- git commit -m
- git commit --amend #update the commit info
- git push origin
- git stash
- git stash list # get the stash list
- git stash pop # get the first stash files
git tag # show all tags git tag # add a new tag git tag -d # delete the tag git push origin # push the tag to the remote
- git revert commitid-1^..commitid-n # [commitid-1, commitid-n]