GIT - DUG Antwerp
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

GIT - DUG Antwerp

on

  • 1,371 views

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

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

Statistics

Views

Total Views
1,371
Views on SlideShare
1,370
Embed Views
1

Actions

Likes
0
Downloads
14
Comments
0

1 Embed 1

http://translate.googleusercontent.com 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

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 - DUG Antwerp Presentation Transcript

  • 1. Git Harder Better Faster Stronger
  • 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. Git * What is it * Why use git * G(CL)IT * G(U)IT * DIY * Dog
  • 4. Git What?
  • 5. What * Linus Torvalds * Global Information Tracker * Revision control system * Distributed development
  • 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. Git Why ?
  • 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. Git G(CL)IT
  • 10. CLI Let's go command line .. Wait a minute .. you just said easy to learn ?!
  • 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. 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. CLI Checkout * git clone * git branch -a * git checkout branch * git pull * git fetch
  • 14. CLI Working * git config * git status * git commit (-a) * git push (origin branch) * git reset --hard * git stash (pop)
  • 15. .gitignore * .gitignore * git config --global core.excludesfile ~/.gitignore (private) * git config core.excludesfile .mygitignore (in any git repo)
  • 16. .gitignore * *.blah * *.html * !foo.html
  • 17. CLI Publishing and patching * git diff ( > file.patch) * git apply file.patch * git tag (and push)
  • 18. CLI Cheatsheat http://zrusin.blogspot.com/2007/09/git-cheat-sheet.html
  • 19. Git G(U)IT
  • 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. Git DIY
  • 22. DIY * git init * git –-bare init * git remote add origin
  • 23. DIY With a little help of friends * http://drupal.org - Sandboxes! * http://github.com
  • 24. Dog Woof Woof Submodules * http://drupal.org /project/dog
  • 25. Git Questions