Contenu connexe
Similaire à Why Git is the New Sexy: A Concise Guide
Similaire à Why Git is the New Sexy: A Concise Guide (20)
Why Git is the New Sexy: A Concise Guide
- 5. Why?
• it’s the stupid content tracker
• it’s fast!
• it' 1000 times sexy than SVN
- 6. Why?
• it’s the stupid content tracker
• it’s fast!
• it' 1000 times sexy than SVN
• It’s written for Linux by Linus Torvalds
- 12. Start
• git clone https://github.com/jquery/jquery.git
- 13. Start
• git clone https://github.com/jquery/jquery.git
• Initialized empty Git repository in /tmp/jquery/.git/ remote:
Counting objects: 14043, done.
remote: Compressing objects: 100% (4070/4070), done.
remote: Total 14043 (delta 9717), reused 13753 (delta 9452)
Receiving objects: 100% (14043/14043), 12.45 MiB | 288 KiB/s, done.
Resolving deltas: 100% (9717/9717), done.
- 17. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
- 18. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
• cd repo
- 19. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
• cd repo
• touch README
- 20. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
• cd repo
• touch README
• git add README
- 21. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
• cd repo
• touch README
• git add README
• git ci -m “hello git”
- 22. Using git
• mkdir repo.git
• git init --bare
• git clone admin@alipay.im:/git/repo.git //
password: admin
• cd repo
• touch README
• git add README
• git ci -m “hello git”
• git push
- 28. The Real World
• git help • git fetch
• git clone • git pullush
• git diff • git pull
• git status • git log
• git branch • git config
• git checkout • git tag
• git merge/rebase • git submodule
• git remote • git init
• git commit • .......
- 34. Others
• 销
git checkout -- file ( svn revert file)
• 销 git commit --amend
- 35. Git 则
• Commit
• Commit Message
• Commit, 发 毕 Push
• Rebase 经 Push 东
http://progit.org/book/zh/ch3-6.html
Notes de l'éditeur
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n