Last active
December 14, 2015 13:18
-
-
Save johndbritton/5092569 to your computer and use it in GitHub Desktop.
CU Boulder Class Notes
This file contains hidden or 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
mkdir uc | |
cd uc/ | |
git init | |
ls -alh | |
tree .git/ | |
git status | |
touch foo | |
git status | |
git add foo | |
git status | |
subl foo | |
git status | |
git add foo | |
git status | |
git status | |
git add foo | |
git status | |
git commit -m'add some gibberish' | |
git status | |
git log | |
git status | |
git diff | |
git help add | |
git help add | |
git help add | |
cd uc | |
git status | |
git help add | |
git add -i foo | |
git add -p foo | |
git status | |
git commit -m 'add a comment' | |
git status | |
git add foo | |
git commit -m 'add implementation detail' | |
git status | |
git log | |
git checkout a5fe43e83c949b8f3916ea0f191ba92facc7cfa9 | |
git checkout 5745030f26510aefdd035ec6a4908218cda452d5 | |
git log | |
git checkout 51f03813a8188fe8e3ee4ae5cf4f26abda1fd836 | |
git checkout 5745030f26510aefdd035ec6a4908218cda452d5 | |
clear | |
touch another | |
git status | |
git add -a -m 'add another file' | |
git commit -a -m 'add another file' | |
git checkout master | |
git commit -a -m 'add another file' | |
git commit -a | |
clear | |
git reset --hard HEAD | |
clear | |
git status | |
rm another | |
git status | |
git status | |
git commit -a | |
cd .. | |
ls | |
rm -rf uc | |
mkdir uc | |
cd uc | |
git init | |
rm -rf .git | |
cd uc/ | |
git init | |
tree .git | |
~/gitscripts/treelive | |
ls | |
rm -rf .git/hooks/ | |
touch README.md | |
git status | |
git add README.md | |
touch foo | |
git add foo | |
git status | |
git hash-object foo | |
git hash-object README.md | |
cat .git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 | |
git show-object e69de29 | |
git show e69de29 | |
subl README.md | |
git status | |
git hash-object README.md | |
git add README.md | |
git show be210e0d0a6eb1568bcab8bcf823ea67792bda17 | |
cat .git/objects/be/210e0d0a6eb1568bcab8bcf823ea67792bda17 | |
git commit -m 'add a readme and some blank files' | |
git show 6adf102 | |
git show 6adf102 | |
git help show | |
git show --pretty=fuller 6adf102 | |
git show d06b414 | |
git show --pretty=fuller d06b414 | |
git ls-tree d06b414 | |
cd uc | |
~/github/github/ | |
cat ../gitscripts/git-graphlive | |
cat .git/refs/heads/master | |
git branch | |
git checkout master | |
subl README.md | |
git status | |
git add README.md | |
git status | |
git commit -m 'add todo' | |
git diff HEAD~1 | |
git diff master~1 | |
~/gitscripts/generaterandomchanges 4 feature rb | |
git branch bugfix | |
cat .git/refs/heads/bugfix | |
nano .git/refs/heads/something-else | |
git branch -d something-else | |
git branch | |
git checkout bugfix | |
git branch | |
~/gitscripts/generaterandomchanges 3 bugfix rb | |
git checkout master | |
touch example | |
git add example | |
git commit -m 'example' | |
git branch | |
git merge bugfix | |
git show --pretty=fuller master | |
git branch | |
git checkout -b cause-problems | |
git branch | |
git add README.md | |
git status | |
git commit -m 'something' | |
git checkout master | |
git status | |
git add README.md | |
git commit -m 'hmm' | |
git status | |
git branch | |
git merge cause-problems | |
git status | |
git status | |
git add README.md | |
git status | |
git commit | |
cd uc | |
git checkout bugfix | |
git checkout fdbdfa3 | |
git checkout bugfix | |
git checkout 55d419c | |
cd github/education-web/ | |
subl github/education-web/ | |
tree | |
cd uc | |
ls | |
cd ~/gitscripts/ | |
ls | |
cat git-graphlive | |
guard | |
~/gitscripts/treelive | |
~/gitscripts/treelive .git/ | |
~/gitscripts/git-graphlive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment