Git Harder  Better Faster  Stronger
Git General assumptions Who will get the most out of this presentation: *   You are comfortable using command-line utiliti...
Git   *  What is it *  Why use git *  G(CL)IT *  G(U)IT *  DIY *  Dog
Git   What?
What *  Linus Torvalds *  Global Information Tracker *  Revision control system *  Distributed development
Git Slang: stupid or unpleasant person "I'm an egotistical bastard, and I name all my projects after myself. First Li...
Git   Why ?
Why *  Blazingly fast – local * *  Small space (30x) *  Easy workflow *  Drupal.org switched to it *  Easy to learn – cf s...
Git   G(CL)IT
CLI Let's go command line .. Wait a minute .. you just said easy to learn ?!
*  git init : start a new git project *  git remote : configure remote origin  *  git config : configure *  git clone : ch...
CLI *  Full list of commands: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html http://git-scm.com/document...
CLI Checkout *  git clone *  git branch -a *  git checkout branch *  git pull *  git fetch
CLI Working *  git config *  git status *  git commit (-a) *  git push (origin branch) *  git reset --hard *  git stash (p...
.gitignore *  .gitignore *  git config --global core.excludesfile ~/.gitignore (private) *  git config core.excludesfile ....
.gitignore *  *.blah *  *.html *  !foo.html
CLI Publishing and patching *  git diff ( > file.patch) *  git apply file.patch *  git tag (and push)
CLI Cheatsheat http://zrusin.blogspot.com/2007/09/git-cheat-sheet.html
Git   G(U)IT
Gui *  http://www.eclipse.org/jgit/ *   http://www.eclipse.org/egit/   (Still in 'incubation' phase) *  http://gitx.frim.n...
Git   DIY
DIY *  git init *  git –-bare init *  git remote add origin
DIY With a little help of friends *   http://drupal.org  - Sandboxes! *  http://github.com
Dog Woof Woof Submodules *   http://drupal.org /project/dog
Git   Questions
Upcoming SlideShare
Loading in...5
×

GIT - DUG Antwerp

1,116
-1

Published on

Presentations slides about the version control system GIT by Swentel - Drupal User Group (DUG) @Krimson Office Antwerp - April 28th 2011.

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
1,116
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

GIT - DUG Antwerp

  1. 1. Git Harder Better Faster Stronger
  2. 2. Git General assumptions Who will get the most out of this presentation: * You are comfortable using command-line utilities. * You know what version control is. * p ractical examples. * Beer (if you're actually in this room)
  3. 3. Git * What is it * Why use git * G(CL)IT * G(U)IT * DIY * Dog
  4. 4. Git What?
  5. 5. What * Linus Torvalds * Global Information Tracker * Revision control system * Distributed development
  6. 6. Git Slang: stupid or unpleasant person "I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git.” Linus Torvalds
  7. 7. Git Why ?
  8. 8. Why * Blazingly fast – local * * Small space (30x) * Easy workflow * Drupal.org switched to it * Easy to learn – cf slide 11 * Although cloning can take a while
  9. 9. Git G(CL)IT
  10. 10. CLI Let's go command line .. Wait a minute .. you just said easy to learn ?!
  11. 11. * git init : start a new git project * git remote : configure remote origin * git config : configure * git clone : checkout from origin * git checkout : checkout local * git branch (-a -d) : list/create/delete * git add : add files to repository * git tag : create a tag * git status : see status of working copy * git commit : commit changes * git push : push changes * git diff : see diff * git apply : apply a patch * git reset : reset HEAD * git stash : fast revert to HEAD
  12. 12. CLI * Full list of commands: http://www.kernel.org/pub/software/scm/git/docs/user-manual.html http://git-scm.com/documentation http://drupal.org/project/name/git-instructions
  13. 13. CLI Checkout * git clone * git branch -a * git checkout branch * git pull * git fetch
  14. 14. CLI Working * git config * git status * git commit (-a) * git push (origin branch) * git reset --hard * git stash (pop)
  15. 15. .gitignore * .gitignore * git config --global core.excludesfile ~/.gitignore (private) * git config core.excludesfile .mygitignore (in any git repo)
  16. 16. .gitignore * *.blah * *.html * !foo.html
  17. 17. CLI Publishing and patching * git diff ( > file.patch) * git apply file.patch * git tag (and push)
  18. 18. CLI Cheatsheat http://zrusin.blogspot.com/2007/09/git-cheat-sheet.html
  19. 19. Git G(U)IT
  20. 20. Gui * http://www.eclipse.org/jgit/ * http://www.eclipse.org/egit/ (Still in 'incubation' phase) * http://gitx.frim.nl/ * http://code.google.com/p/msysgit/
  21. 21. Git DIY
  22. 22. DIY * git init * git –-bare init * git remote add origin
  23. 23. DIY With a little help of friends * http://drupal.org - Sandboxes! * http://github.com
  24. 24. Dog Woof Woof Submodules * http://drupal.org /project/dog
  25. 25. Git Questions
  1. A particular slide catching your eye?

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

×