Git isthenewsexy

16,329 views

Published on

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

No Downloads
Views
Total views
16,329
On SlideShare
0
From Embeds
0
Number of Embeds
15,780
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

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
  • Git isthenewsexy

    1. 1. Git is the new sexy @Vingel
    2. 2. Why?
    3. 3. Why?• it’s the stupid content tracker
    4. 4. Why?• it’s the stupid content tracker• it’s fast!
    5. 5. Why?• it’s the stupid content tracker• it’s fast!• it 1000 times sexy than SVN
    6. 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. 7. Installation
    8. 8. Installation• brew install git //short & sweet :)
    9. 9. Installation• brew install git //short & sweet :)• http://mac.github.com/
    10. 10. Installation• brew install git //short & sweet :)• http://mac.github.com/• http://code.google.com/p/msysgit/
    11. 11. Start
    12. 12. Start• git clone https://github.com/jquery/jquery.git
    13. 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. 14. Using git
    15. 15. Using git• mkdir repo.git
    16. 16. Using git• mkdir repo.git• git init --bare
    17. 17. Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin
    18. 18. Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo
    19. 19. Using git• mkdir repo.git• git init --bare• git clone admin@alipay.im:/git/repo.git // password: admin• cd repo• touch README
    20. 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. 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. 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. 23. Git on Dropbox
    24. 24. That’s All!
    25. 25. Wait a minutes.
    26. 26. One More Thing
    27. 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. 28. Git Status
    29. 29. Git Push/Pull
    30. 30. Git branch
    31. 31. Merge
    32. 32. Rebase
    33. 33. Others• 销 git checkout -- file ( svn revert file)• 销 git commit --amend
    34. 34. Git 则• Commit• Commit Message• Commit, 发 毕 Push• Rebase 经 Push 东 http://progit.org/book/zh/ch3-6.html
    35. 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 实

    ×