Adapted from http://teach.github.com/presentations/git-foundations.html.
-
-
Save ben/e5d2328b5b1d804ac7c7 to your computer and use it in GitHub Desktop.
Transcript for intro-to-git talk at ConFoo 2013 (https://joind.in/7845). Slides at http://teach.github.com/presentations/git-foundations.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --list | |
ls | |
git init | |
git add -A . | |
git commit "Initial Import" | |
git commit -m"Initial Import" | |
cd .git | |
tree | |
cd .. | |
ls | |
echo hello >> hi.txt | |
git status | |
git add hi.txt | |
git status | |
git reset HEAD hi.txt | |
git status | |
echo bubbye >> bye.txt | |
git gui | |
git status | |
git reset HEAD bye.txt | |
git status | |
git commit -m"??" | |
git diff | |
git add hi.txt | |
git diff | |
git diff --staged | |
cd ../git | |
git log | |
git log -1 | |
git log -1 --format=full | |
git log -1 --format=fuller | |
git log -1 --format=raw | |
git log -1 --stat | |
git log -1 --patch | |
git alias | |
git config --list | grep lg | |
git lg | |
cd ../demo | |
git status | |
echo more >> bye.txt | |
git status | |
cat bye.txt | |
echo more >> hi.txt | |
git status | |
git gui | |
echo huh > c.txt | |
git status | |
git log -3 | |
git branch | |
cd ../git | |
git branch | |
git branch -a | |
git branch -a --no-color | |
cd ../demo | |
git branch -a --no-color | |
git branch feature1 | |
git branch --no-color | |
git checkout feature1 | |
git status | |
git checkout -b feature2 | |
cd ../git | |
vi .git/config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment