https://github.com/wangxiaoyugg/git-note
this is git-note for my review
https://github.com/wangxiaoyugg/git-note
Last synced: 3 months ago
JSON representation
this is git-note for my review
- Host: GitHub
- URL: https://github.com/wangxiaoyugg/git-note
- Owner: WangXiaoyugg
- Created: 2017-07-29T13:47:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T08:44:14.000Z (over 7 years ago)
- Last Synced: 2025-01-27T16:48:17.790Z (4 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 master9. git diff
10. git clone http://github.com/xxx
11. git checkout hello.js
12. git pull13. 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