Skip to content

WangXiaoyugg/git-note

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-note for my review

  • 初始化本地仓库
  1. mkdir git-note

  2. cd git git-note

  3. git init

  4. echo '#git-note for my review' >> README.md

  5. git status

  6. git commit -m 'first-submit'

  7. git remote add origin http://github.com/xxxx

  8. git push -u origin master

  9. git diff

  10. git clone http://github.com/xxx

  11. git checkout hello.js

  12. git pull

  13. git diff --staged

  14. git mv file1 file2

  15. git rm log/*.log

  16. git log

  17. git log -p -2

  18. git commit --amend

  19. git reset HEAD README.md

  20. git checkout -- README.md

  21. git remote -v

  22. git fetch [remote-name]

  23. git push [remote-name] [branch-name]

  24. git remote show origin

  25. git remote rename origin dev

  26. git remote rm dev

  27. git tag

  28. git tag -l 'v1.2.2.*'

  29. git tag -a v1.0 -m 'my version 1.0'

  30. git show v1.0

  31. git push dev v1.0

  32. git push origin --tags

About

this is git-note for my review

Resources

Stars

Watchers

Forks

Packages

No packages published