Skip to content

Instantly share code, notes, and snippets.

@ben
Last active December 14, 2015 07:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ben/e5d2328b5b1d804ac7c7 to your computer and use it in GitHub Desktop.
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
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