This document provides an overview and introduction to Git:
1. Git is a distributed version control system created by Linus Torvalds that allows for blazingly fast local version control and collaboration through distributed development.
2. Git can be used through both a command line interface (CLI) and graphical user interfaces (GUIs). The CLI provides many basic commands for initializing repositories, making commits, branching, tagging, and more.
3. Users can create their own Git repositories on their local machine or hosting services like GitHub to collaborate on projects and share code.
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
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
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
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