git
DESCRIPTION
Brett Smith's Spring 2011 presentation on Git, the popular open source version control system.TRANSCRIPT
{Git
From noob to pro
Version Control Fast Distributed
What is Git?
“Git made me a more productive coder because it showed me how much progress I had made” – Thomas “Synk” Kelley
“I use Git because the commands are really easy to use. I use Git because if I want to set up a Git server on the Internet it does not require any extra processes on my server, all I need is an SSH connection” – Chris “Panda” Nord
Why Git?
Modified – I modified a file Staged – Git has taken a snapshot of my
modification Commited – Git has permanently
recorded my modifications from the stage
The three file stages in Git
The three file stages in Git
git init git add files git commit –m ‘my commit message’
A new Git repository
..What just happened?
..What just happened?
git clone location git clone myserver.com:/path/to/repo/.git git clone
git://github.com/username/project.git git pull git push
An existing repository
git diff git revert git checkout git log git blame git tag
Useful commands
git branch new_branch git checkout new_branch
Branching
Branching
Merging
Merging
Implementation detail
Implementation detail
Implementation detail
Implementation detail
Implementation detail
Implementation detail
Implementation detail
Interactive staging Stashing Bisect
Other notables!
Questions?
Images taken from progit.org and marklodato.github.com/visual-git-guide
Credits