Your SlideShare is downloading. ×
0
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
Introduction to Git and Github
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

Introduction to Git and Github

2,691

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,691
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
102
Comments
0
Likes
3
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

Transcript

  • 1. Introduction to Git and GitHub 2012/02/02
  • 2. Git 101 <ul><ul><li>Distributed Version Control System </li></ul></ul><ul><ul><ul><li>Design for speed and efficiency </li></ul></ul></ul><ul><ul><li>Open Source  </li></ul></ul>
  • 3. Git 101 <ul><ul><li>Distributed Version Control System </li></ul></ul><ul><ul><ul><li>Designed for speed and efficiency </li></ul></ul></ul><ul><ul><li>Open Source   </li></ul></ul>
  • 4. git-scm.com
  • 5. Git 101 <ul><ul><li>Distributed Version Control System </li></ul></ul><ul><ul><ul><li>Designed for speed and efficiency </li></ul></ul></ul><ul><ul><li>Open Source  </li></ul></ul>
  • 6. Version Control <ul><ul><li>?? </li></ul></ul><ul><ul><li>?? </li></ul></ul>
  • 7. Version Control <ul><ul><li>Visual Source Safe </li></ul></ul><ul><ul><li>CVS ( Concurrent Version System ) </li></ul></ul><ul><ul><li>SVN ( SubVersion ) </li></ul></ul><ul><ul><li>Bazaar   </li></ul></ul><ul><ul><li>Mercurial ( hg ) </li></ul></ul><ul><ul><li>Git   </li></ul></ul>
  • 8. Git 101 <ul><ul><li>Distributed Version Control System </li></ul></ul><ul><ul><ul><li>Designed for speed and efficiency </li></ul></ul></ul><ul><ul><li>Open Source  </li></ul></ul>
  • 9. Local Version Control
  • 10. Centralized  Version Control
  • 11. Centralized  Version Control :: Cons
  • 12. Distributed  Version Control Full mirror Full mirror
  • 13. Distributed  Version Control Almost  everything is local.
  • 14. Distributed  Version Control Fast, backup and Work offline
  • 15. Git 101 <ul><ul><li>Distributed Version Control System </li></ul></ul><ul><ul><ul><li>Designed for speed and efficiency </li></ul></ul></ul><ul><ul><li>Open Source  </li></ul></ul>
  • 16. Linux Team Fast Simple Parallel branch ( 1,000+ ) Fully distributed Handle large project such as  Linux kernel
  • 17. Who use git ?
  • 18. &nbsp;
  • 19. &nbsp;
  • 20. Hello Git
  • 21. Install git on Windows <ul><ul><li>Download from http://code.google.com/p/msysgit </li></ul></ul>
  • 22. Create User and Password <ul><li>$ git config --global user.name &amp;quot;SomkiatP&amp;quot; $ git config --global user.email  &amp;quot;somkiat@xxx.com&amp;quot; </li></ul>
  • 23. Create Repository <ul><li>$ git init </li></ul>
  • 24. View repository <ul><li>$ tree -a </li></ul>Download tree for win32 at  http://sourceforge.net/projects/gnuwin32/files/tree/  
  • 25. Add new file <ul><li>$ touch test_1.txt </li></ul><ul><li>$ git add test_1.txt </li></ul><ul><li>$ git commit -m &apos;First commit&apos; </li></ul>
  • 26. View repository <ul><li>$ tree -a </li></ul>
  • 27. Help me <ul><li>$ git help </li></ul>
  • 28. Help me <ul><li>$ git help &lt;command&gt; </li></ul><ul><li>$ git help init </li></ul>
  • 29. Clone <ul><li>Now, We don&apos;t have Git Server. </li></ul><ul><li>But we have GitHub.com </li></ul>
  • 30. GitHub.com
  • 31. Welcome to GitHub <ul><ul><li>Register and login </li></ul></ul><ul><ul><li>Ready to use .... </li></ul></ul>
  • 32. Create new repository
  • 33. After created, Everything you should know and do
  • 34. Setting git before using github <ul><ul><li>Generate SSH key in git ( Local ) </li></ul></ul><ul><ul><li>$ssh-keygen -t rsa -C &amp;quot;somkiat_spns@xxx.com&amp;quot; </li></ul></ul>
  • 35. Copy data in file id_rsa.pub to github
  • 36. Manage data with github <ul><ul><li>$ git config --global user.name &amp;quot;up1&amp;quot; </li></ul></ul><ul><ul><li>$ git config --global user.email somkiat_spns@xxx.com </li></ul></ul><ul><ul><li>$ git init </li></ul></ul><ul><ul><li>$ touch README </li></ul></ul><ul><ul><li>$ git add README </li></ul></ul><ul><ul><li>$ git commit -m &apos;first commit&apos; </li></ul></ul><ul><ul><li>$ git remote add origin git@github.com:up1/----hello_tarad.git </li></ul></ul><ul><ul><li>$ git push -u origin master </li></ul></ul>
  • 37. Manage data with github ( demo )
  • 38. Manage data with github (demo)
  • 39. See result at github, Work !!
  • 40. Come back to Clone repository <ul><ul><li>Copy URL of repository from github </li></ul></ul>
  • 41. Clone repository <ul><ul><li>$ git clone https://up1@github.com/up1/----hello_tarad.git </li></ul></ul>Required password of gitbub
  • 42. Good Resource  for beginner
  • 43. progit.org
  • 44. https://github.com/opendream/progit  

×