Skip to content

Instantly share code, notes, and snippets.

@ben
Last active Dec 14, 2015
Embed
What would you like to do?
Transcript for intro-to-git talk at ConFoo 2013 (https://joind.in/7845). Slides at http://teach.github.com/presentations/git-foundations.html
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