Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Introduction to Git Yang Li
Slide 2
Slide 2 text
Features • Branching and Merging • Small and Fast • Distributed • Data Assurance • Staging Area • Free and Open Source http://git-scm.com/about
Slide 3
Slide 3 text
Installing • http://git-scm.com/download • $ brew install git • $ apt-get install git
Slide 4
Slide 4 text
Configurations • $ git config --global user.name "Your Name" • $ git config --global user.email email@example.com • $ git config --global color.ui true
Slide 5
Slide 5 text
Hello World • $ git init • $ git add README • $ git status • $ git commit -m "first commit"
Slide 6
Slide 6 text
Three Trees • Working Directory • Index (Staging Area) • HEAD
Slide 7
Slide 7 text
Basics • $ git diff • $ git mv • $ git rm • $ git log • $ git checkout • $ git reset • $ git blame • $ git show • $ git stash • ...
Slide 8
Slide 8 text
Branches • $ git branch • $ git merge • $ git rebase • $ git cherry-pick • $ git tag • ...
Slide 9
Slide 9 text
• $ git clone • $ git remote • $ git push • $ git fetch • $ git pull • ... Remotes
Slide 10
Slide 10 text
• $ git help Getting Help
Slide 11
Slide 11 text
Goodies • git-extras • GitX
Slide 12
Slide 12 text
Resources • http://git-scm.com/ • http://gitref.org/ • http://gitcasts.com/ • https://help.github.com/
Slide 13
Slide 13 text
THANKS
Slide 14
Slide 14 text
Questions?