Introduction to Git
About Git• Version control• Distributed• Fast
Starting a repository• init  git init• clone  git clone <repo>
Adding files• add  git add -A• commit  git commit –am <message>
Branching        timeA   A          C   D    B          B
Branching• branch  git branch <branchname>• checkout  git checkout <branchname>• merge  git merge <branchname>
Remotes                    remote    Repo 1                      Repo 2                     originYour local copy         ...
Updating local• fetch  git fetch <remote>• merge  git merge <remote>/<branch>
Updating remote• push  git push <remote> <branch>
Other features•   exporting•   tagging•   diff•   submodules
ANY QUESTIONS?   @Phill_Brown
Upcoming SlideShare
Loading in...5
×

Introduction to git

456

Published on

Published in: News & Politics, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
456
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to git

  1. 1. Introduction to Git
  2. 2. About Git• Version control• Distributed• Fast
  3. 3. Starting a repository• init git init• clone git clone <repo>
  4. 4. Adding files• add git add -A• commit git commit –am <message>
  5. 5. Branching timeA A C D B B
  6. 6. Branching• branch git branch <branchname>• checkout git checkout <branchname>• merge git merge <branchname>
  7. 7. Remotes remote Repo 1 Repo 2 originYour local copy drupal.org github.com
  8. 8. Updating local• fetch git fetch <remote>• merge git merge <remote>/<branch>
  9. 9. Updating remote• push git push <remote> <branch>
  10. 10. Other features• exporting• tagging• diff• submodules
  11. 11. ANY QUESTIONS? @Phill_Brown
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×