Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 857 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 857 Bytes

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