Git
Upcoming SlideShare
Loading in...5
×
 

Git

on

  • 923 views

 

Statistics

Views

Total Views
923
Views on SlideShare
891
Embed Views
32

Actions

Likes
0
Downloads
12
Comments
0

2 Embeds 32

http://www.linkedin.com 24
https://www.linkedin.com 8

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Git Git Presentation Transcript

  • 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 Que and Ans Vikash (LUG Manipal) git October 31, 2011 2 / 13
  • A bit of history Vikash (LUG Manipal) git October 31, 2011 3 / 13 View slide
  • A bit of history Distributed version control system Vikash (LUG Manipal) git October 31, 2011 3 / 13 View slide
  • A bit of history Distributed version control system Designed by . . . for Linux kernel development Vikash (LUG Manipal) git October 31, 2011 3 / 13
  • 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
  • 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
  • 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 done in a different branch and can be merged easily 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 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
  • 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
  • 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) git October 31, 2011 5 / 13
  • 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
  • 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
  • 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, 2011 6 / 13
  • 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
  • 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
  • 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) 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? As we want to share or codes/branch I need a remote/upstream 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? 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
  • 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
  • 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
  • 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, 2011 8 / 13
  • Who uses Git these days Many Open-source organizations Twitter Facebook Vikash (LUG Manipal) git October 31, 2011 8 / 13
  • Who uses Git these days Many Open-source organizations Twitter Facebook Yahoo Vikash (LUG Manipal) git October 31, 2011 8 / 13
  • Who uses Git these days Many Open-source organizations Twitter Facebook Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  • Who uses Git these days Many Open-source organizations Diaspora Twitter Facebook Yahoo Qt Vikash (LUG Manipal) git October 31, 2011 8 / 13
  • 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
  • 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
  • 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
  • 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
  • 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 –global user.email ”vikashagrawal1990@gmail.com” Vikash (LUG Manipal) git October 31, 2011 9 / 13
  • 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
  • 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
  • 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 October 31, 2011 11 / 13
  • Options Bazaar github.com Mercurial gitorious.com CVS SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  • Options Bazaar github.com Mercurial gitorious.com CVS bitbucket.org SVN Vikash (LUG Manipal) git October 31, 2011 11 / 13
  • Options Bazaar github.com Mercurial gitorious.com CVS bitbucket.org SVN Google code Vikash (LUG Manipal) git October 31, 2011 11 / 13
  • Please Ask Your doubtsVikash (LUG Manipal) git October 31, 2011 12 / 13
  • Thank You!!!Vikash (LUG Manipal) git October 31, 2011 13 / 13