tracylyx / study-git

for studing git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-study

for studing git

base command line

  • 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

tag

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

revert

  • git revert commitid-1^..commitid-n # [commitid-1, commitid-n]

About

for studing git