git       Vikash Agrawalvikashagrawal1990@gmail.com       @ivikashagrawal   Linux Users Group, Manipal     October 31, 2011
Index1   History2   Features3   Installation4   Why do I need remote server5   Who uses Git6   Getting started7   Options8...
A bit of history   Vikash (LUG Manipal)   git   October 31, 2011   3 / 13
A bit of history                                Distributed version control                                system   Vikash...
A bit of history                                Distributed version control                                system         ...
A bit of history                                Distributed version control                                system         ...
A bit of history                                Distributed version control                                system         ...
Features - lets discuss!   Vikash (LUG Manipal)    git   October 31, 2011   4 / 13
Features - lets discuss!    Distributed development (?)   Vikash (LUG Manipal)           git   October 31, 2011   4 / 13
Features - lets discuss!    Distributed development (?)    Each developer has a local copy of dev history. The changes are...
Features - lets discuss!    Distributed development (?)    Each developer has a local copy of dev history. The changes are...
Features - lets discuss!    Distributed development (?)    Each developer has a local copy of dev history. The changes are...
Features - lets discuss!   Vikash (LUG Manipal)    git   October 31, 2011   5 / 13
Features - lets discuss!    Efficient handling of large project, is very fast (logs, history, diff)   Vikash (LUG Manipal)   ...
Features - lets discuss!    Efficient handling of large project, is very fast (logs, history, diff)    Cryptographic authenti...
Features - lets discuss!    Efficient handling of large project, is very fast (logs, history, diff)    Cryptographic authenti...
How can I get it in my machine   Vikash (LUG Manipal)    git   October 31, 2011   6 / 13
How can I get it in my machine    Using source (linux/macs/similar)   Vikash (LUG Manipal)            git   October 31, 20...
How can I get it in my machine    Using source (linux/macs/similar)    apt-get install, or yum install, or zypper in git ,...
How can I get it in my machine    Using source (linux/macs/similar)    apt-get install, or yum install, or zypper in git ,...
Why do I need remote server   Vikash (LUG Manipal)   git   October 31, 2011   7 / 13
Why do I need remote server    Dude, I can edit my code locally then why do I need remote server?   Vikash (LUG Manipal)  ...
Why do I need remote server    Dude, I can edit my code locally then why do I need remote server?    As we want to share o...
Why do I need remote server    Dude, I can edit my code locally then why do I need remote server?    As we want to share o...
Why do I need remote server    Dude, I can edit my code locally then why do I need remote server?    As we want to share o...
Why do I need remote server    Dude, I can edit my code locally then why do I need remote server?    As we want to share o...
Who uses Git these days   Vikash (LUG Manipal)   git   October 31, 2011   8 / 13
Who uses Git these days   Many Open-source organizations   Vikash (LUG Manipal)             git   October 31, 2011   8 / 13
Who uses Git these days   Many Open-source organizations   Twitter   Vikash (LUG Manipal)             git   October 31, 20...
Who uses Git these days   Many Open-source organizations   Twitter   Facebook   Vikash (LUG Manipal)             git   Oct...
Who uses Git these days   Many Open-source organizations   Twitter   Facebook   Yahoo   Vikash (LUG Manipal)             g...
Who uses Git these days   Many Open-source organizations   Twitter   Facebook   Yahoo   Qt   Vikash (LUG Manipal)         ...
Who uses Git these days   Many Open-source organizations         Diaspora   Twitter   Facebook   Yahoo   Qt   Vikash (LUG ...
Who uses Git these days   Many Open-source organizations         Diaspora   Twitter                                Linux K...
Who uses Git these days   Many Open-source organizations         Diaspora   Twitter                                Linux K...
Who uses Git these days   Many Open-source organizations         Diaspora   Twitter                                Linux K...
Who uses Git these days   Many Open-source organizations         Diaspora   Twitter                                Linux K...
Gitting started   Vikash (LUG Manipal)   git   October 31, 2011   9 / 13
Gitting started    First cofigure the user           git config –global user.name ”Vikash Agrawal”           git config –glob...
Gitting started    First cofigure the user           git config –global user.name ”Vikash Agrawal”           git config –glob...
git commands: basics git   init                   Initialize a git repository git   add                    Add files to a r...
Options   Vikash (LUG Manipal)   git   October 31, 2011   11 / 13
Options   Bazaar   Vikash (LUG Manipal)   git   October 31, 2011   11 / 13
Options   Bazaar   Mercurial   Vikash (LUG Manipal)   git   October 31, 2011   11 / 13
Options   Bazaar   Mercurial   CVS   Vikash (LUG Manipal)   git   October 31, 2011   11 / 13
Options   Bazaar   Mercurial   CVS   SVN   Vikash (LUG Manipal)   git   October 31, 2011   11 / 13
Options   Bazaar                       github.com   Mercurial   CVS   SVN   Vikash (LUG Manipal)   git                Octo...
Options   Bazaar                       github.com   Mercurial                    gitorious.com   CVS   SVN   Vikash (LUG M...
Options   Bazaar                       github.com   Mercurial                    gitorious.com   CVS                      ...
Options   Bazaar                       github.com   Mercurial                    gitorious.com   CVS                      ...
Please Ask Your                             doubtsVikash (LUG Manipal)   git             October 31, 2011   12 / 13
Thank You!!!Vikash (LUG Manipal)   git           October 31, 2011   13 / 13
Upcoming SlideShare
Loading in …5
×

Git

915 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
915
On SlideShare
0
From Embeds
0
Number of Embeds
76
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Git

  1. 1. git Vikash Agrawalvikashagrawal1990@gmail.com @ivikashagrawal Linux Users Group, Manipal October 31, 2011
  2. 2. Index1 History2 Features3 Installation4 Why do I need remote server5 Who uses Git6 Getting started7 Options8 Que and Ans Vikash (LUG Manipal) git October 31, 2011 2 / 13
  3. 3. A bit of history Vikash (LUG Manipal) git October 31, 2011 3 / 13
  4. 4. A bit of history Distributed version control system Vikash (LUG Manipal) git October 31, 2011 3 / 13
  5. 5. A bit of history Distributed version control system Designed by . . . for Linux kernel development Vikash (LUG Manipal) git October 31, 2011 3 / 13
  6. 6. A bit of history Distributed version control system Designed by . . . for Linux kernel development git is slang for a stupid or unpleasant person Vikash (LUG Manipal) git October 31, 2011 3 / 13
  7. 7. A bit of history Distributed version control system Designed by . . . for Linux kernel development git is slang for a stupid or unpleasant person ”I’m an egotistical bastard, and I name all my projects after myself. First Linux, now git.” Vikash (LUG Manipal) git October 31, 2011 3 / 13
  8. 8. Features - lets discuss! Vikash (LUG Manipal) git October 31, 2011 4 / 13
  9. 9. Features - lets discuss! Distributed development (?) Vikash (LUG Manipal) git October 31, 2011 4 / 13
  10. 10. Features - lets discuss! Distributed development (?) Each developer has a local copy of dev history. The changes are done in a different branch and can be merged easily Vikash (LUG Manipal) git October 31, 2011 4 / 13
  11. 11. Features - lets discuss! Distributed development (?) Each developer has a local copy of dev history. The changes are done in a different branch and can be merged easily Strong support for non-linear development (?) Vikash (LUG Manipal) git October 31, 2011 4 / 13
  12. 12. Features - lets discuss! Distributed development (?) Each developer has a local copy of dev history. The changes are done in a different branch and can be merged easily Strong support for non-linear development (?) Git supports rapid and convenient branching and merging, and includes powerful tools for visualizing and navigating a non-linear development history. Vikash (LUG Manipal) git October 31, 2011 4 / 13
  13. 13. Features - lets discuss! Vikash (LUG Manipal) git October 31, 2011 5 / 13
  14. 14. Features - lets discuss! Efficient handling of large project, is very fast (logs, history, diff) Vikash (LUG Manipal) git October 31, 2011 5 / 13
  15. 15. Features - lets discuss! Efficient handling of large project, is very fast (logs, history, diff) Cryptographic authentication of history Vikash (LUG Manipal) git October 31, 2011 5 / 13
  16. 16. Features - lets discuss! Efficient handling of large project, is very fast (logs, history, diff) Cryptographic authentication of history Codes can be changed, edited locally in a different branch and can be pushed to the server Vikash (LUG Manipal) git October 31, 2011 5 / 13
  17. 17. How can I get it in my machine Vikash (LUG Manipal) git October 31, 2011 6 / 13
  18. 18. How can I get it in my machine Using source (linux/macs/similar) Vikash (LUG Manipal) git October 31, 2011 6 / 13
  19. 19. How can I get it in my machine Using source (linux/macs/similar) apt-get install, or yum install, or zypper in git , etc Vikash (LUG Manipal) git October 31, 2011 6 / 13
  20. 20. How can I get it in my machine Using source (linux/macs/similar) apt-get install, or yum install, or zypper in git , etc For windoze, msysgit OR http://help.github.com/win-set-up-git Vikash (LUG Manipal) git October 31, 2011 6 / 13
  21. 21. Why do I need remote server Vikash (LUG Manipal) git October 31, 2011 7 / 13
  22. 22. Why do I need remote server Dude, I can edit my code locally then why do I need remote server? Vikash (LUG Manipal) git October 31, 2011 7 / 13
  23. 23. Why do I need remote server Dude, I can edit my code locally then why do I need remote server? As we want to share or codes/branch I need a remote/upstream server Vikash (LUG Manipal) git October 31, 2011 7 / 13
  24. 24. Why do I need remote server Dude, I can edit my code locally then why do I need remote server? As we want to share or codes/branch I need a remote/upstream server What are the protocols supported by git? Vikash (LUG Manipal) git October 31, 2011 7 / 13
  25. 25. Why do I need remote server Dude, I can edit my code locally then why do I need remote server? As we want to share or codes/branch I need a remote/upstream server What are the protocols supported by git? Repositories can be published via HTTP, FTP, rsync, or a ”Git” protocol over either a plain socket or ssh Vikash (LUG Manipal) git October 31, 2011 7 / 13
  26. 26. Why do I need remote server Dude, I can edit my code locally then why do I need remote server? As we want to share or codes/branch I need a remote/upstream server What are the protocols supported by git? Repositories can be published via HTTP, FTP, rsync, or a ”Git” protocol over either a plain socket or ssh Note:- If you use ssh, then you need to do ”ssh-keygen” before and share id rsa.pub(most imp) always and never share id rsa Vikash (LUG Manipal) git October 31, 2011 7 / 13
  27. 27. Who uses Git these days Vikash (LUG Manipal) git October 31, 2011 8 / 13
  28. 28. Who uses Git these days Many Open-source organizations Vikash (LUG Manipal) git October 31, 2011 8 / 13
  29. 29. Who uses Git these days Many Open-source organizations Twitter Vikash (LUG Manipal) git October 31, 2011 8 / 13
  30. 30. Who uses Git these days Many Open-source organizations Twitter Facebook Vikash (LUG Manipal) git October 31, 2011 8 / 13
  31. 31. Who uses Git these days Many Open-source organizations Twitter Facebook Yahoo Vikash (LUG Manipal) git October 31, 2011 8 / 13
  32. 32. Who uses Git these days Many Open-source organizations Twitter Facebook Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  33. 33. Who uses Git these days Many Open-source organizations Diaspora Twitter Facebook Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  34. 34. Who uses Git these days Many Open-source organizations Diaspora Twitter Linux Kernel Facebook Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  35. 35. Who uses Git these days Many Open-source organizations Diaspora Twitter Linux Kernel Facebook OLPC Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  36. 36. Who uses Git these days Many Open-source organizations Diaspora Twitter Linux Kernel Facebook OLPC Yahoo and many many more. . . Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  37. 37. Who uses Git these days Many Open-source organizations Diaspora Twitter Linux Kernel Facebook OLPC Yahoo and many many more. . . Qt Video Vikash (LUG Manipal) git October 31, 2011 8 / 13
  38. 38. Gitting started Vikash (LUG Manipal) git October 31, 2011 9 / 13
  39. 39. Gitting started First cofigure the user git config –global user.name ”Vikash Agrawal” git config –global user.email ”vikashagrawal1990@gmail.com” Vikash (LUG Manipal) git October 31, 2011 9 / 13
  40. 40. Gitting started First cofigure the user git config –global user.name ”Vikash Agrawal” git config –global user.email ”vikashagrawal1990@gmail.com” gitk -a a GUI tool for git Vikash (LUG Manipal) git October 31, 2011 9 / 13
  41. 41. git commands: basics git init Initialize a git repository git add Add files to a repository git diff Generate a diff git grep Search for a keyword git status Show uncommitted status git clone url Clone a repository. Sets up master branch git branch Make your own branch git branch -a List all branches git tag -a name Add tag with indicated name git revert Undo a previous commit git push remote local branch Pushing changes to a remoter server (remote → origin) Vikash (LUG Manipal) git October 31, 2011 10 / 13
  42. 42. Options Vikash (LUG Manipal) git October 31, 2011 11 / 13
  43. 43. Options Bazaar Vikash (LUG Manipal) git October 31, 2011 11 / 13
  44. 44. Options Bazaar Mercurial Vikash (LUG Manipal) git October 31, 2011 11 / 13
  45. 45. Options Bazaar Mercurial CVS Vikash (LUG Manipal) git October 31, 2011 11 / 13
  46. 46. Options Bazaar Mercurial CVS SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  47. 47. Options Bazaar github.com Mercurial CVS SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  48. 48. Options Bazaar github.com Mercurial gitorious.com CVS SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  49. 49. Options Bazaar github.com Mercurial gitorious.com CVS bitbucket.org SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  50. 50. Options Bazaar github.com Mercurial gitorious.com CVS bitbucket.org SVN Google code Vikash (LUG Manipal) git October 31, 2011 11 / 13
  51. 51. Please Ask Your doubtsVikash (LUG Manipal) git October 31, 2011 12 / 13
  52. 52. Thank You!!!Vikash (LUG Manipal) git October 31, 2011 13 / 13

×