Your SlideShare is downloading. ×
Git isthenewsexy
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Git isthenewsexy

16,107

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
16,107
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \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
  • Transcript

    • 1. Git is the new sexy @Vingel
    • 2. Why?
    • 3. Why?• it’s the stupid content tracker
    • 4. Why?• it’s the stupid content tracker• it’s fast!
    • 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
    • 7. Installation
    • 8. Installation• brew install git //short & sweet :)
    • 9. Installation• brew install git //short & sweet :)• http://mac.github.com/
    • 10. Installation• brew install git //short & sweet :)• http://mac.github.com/• http://code.google.com/p/msysgit/
    • 11. Start
    • 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.
    • 14. Using git
    • 15. Using git• mkdir repo.git
    • 16. Using git• mkdir repo.git• git init --bare
    • 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
    • 23. Git on Dropbox
    • 24. That’s All!
    • 25. Wait a minutes.
    • 26. One More Thing
    • 27. 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 • .......
    • 28. Git Status
    • 29. Git Push/Pull
    • 30. Git branch
    • 31. Merge
    • 32. Rebase
    • 33. Others• 销 git checkout -- file ( svn revert file)• 销 git commit --amend
    • 34. Git 则• Commit• Commit Message• Commit, 发 毕 Push• Rebase 经 Push 东 http://progit.org/book/zh/ch3-6.html
    • 35. Resource• http://git-scm.org• http://github.com // Git hosting• http://progit.org/book/zh/ // 书• http://sixrevisions.com/resources/git-tutorials- beginners/• https://gist.github.com/1284253 //Vingel’s .gitconfig• git flow //git 实

    ×