Created
July 10, 2013 17:53
-
-
Save johndbritton/5968534 to your computer and use it in GitHub Desktop.
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
git init | |
ls -lah | |
touch a b c | |
ls | |
git status | |
git add a | |
git status | |
git add b | |
git status | |
git reset b | |
git status | |
git reset a | |
rm a b c | |
git status | |
touch README.md | |
git status | |
git add README.md | |
git commit -m 'add an empty readme' | |
git log | |
git status | |
git log | |
git show HEAD --pretty=raw | |
git ls-tree f93e3a1a1525fb5b91020da86e44810c87a2d7bc | |
git show e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 | |
rm -rf .git/hooks | |
tree .git | |
"" | shasum | |
printf 'blob 0\0' | shasum | |
printf 'blob 5\0hello' |shasum | |
nano test | |
cat "hello" > test | |
printf "test" | |
printf "test" > test | |
cat test | |
rm test | |
printf "hello" > test | |
cat test | |
git hash-object test | |
mv test bob | |
git hash-object bob | |
rm bob | |
ls | |
cd ~/Downloads | |
ls *.dmg | |
cat xcode461_cltools_10_86938245a.dmg | shasum | |
ls -alh xcode461_cltools_10_86938245a.dmg | |
git show HEAD --pretty=raw | |
git ls-tree f93e3a1a1525fb5b91020da86e44810c87a2d7bc | |
pwd | |
subl README.md | |
git status | |
git add README.md | |
touch foo | |
git add foo | |
git reset foo | |
rm foo | |
touch new_file | |
nano new_file | |
git add new_file | |
git reset new_file | |
rm new_file | |
tree .git | |
subl README.md | |
ls | |
subl README.md | |
git status | |
github . | |
git diff | |
git diff --staged | |
git add README.md | |
git commit -m "add some content's to the readme" | |
git log | |
git log --graph | |
git show --pretty=raw HEAD | |
git ls-tree bce2e1b826ad2e5eb026ce1066ef7d1e0703a711 | |
touch main.rb | |
subl main.rb | |
nano main.rb | |
git stauts | |
git status | |
git add main.rb | |
git commit -m 'add some ruby' | |
mkdir example | |
rm -rf example | |
tree .git | |
cat .git/objects/98/4c488202f5e044c99b041c563cff6ca587e2d8 | |
git show 984c488 | |
print uncompress(<>)'" | |
deflate .git/objects/98/4c488202f5e044c99b041c563cff6ca587e2d8 | |
ls | |
git show eb619 | |
ls | |
nano README.md | |
git status | |
git diff | |
github . | |
git add -p | |
git add -e | |
git status | |
git diff | |
git reset --hard | |
git diff | |
git status | |
ls | |
rm README.md | |
git status | |
git add README.md | |
git status | |
git add -u . | |
git status | |
tree .git | |
cat .git/index | |
deflate .git/info | |
deflate .git/index | |
git status | |
git reset README.md | |
git checkout -- README.md | |
git checkout HEAD -- README.md | |
ls | |
git status | |
git diff | |
git rm README.md | |
git status | |
git checkout HEAD -- README.md | |
mv README.md INSTRUCTIONS.md | |
git status | |
git add -u . | |
git status | |
git add INSTRUCTIONS.md | |
git status | |
nano INSTRUCTIONS.md | |
git status | |
git add INSTRUCTIONS.md | |
git stauts | |
git status | |
git reset --hard HEAD | |
git status | |
git branch | |
git branch -a | |
git branch | |
git show master | |
tree .git | |
cat .git/refs/heads/master | |
git show --pretty=raw 37e7bc896230490db2bbe10e5c7b8af5f906c8bf | |
git branch chat-feature | |
git show chat-feature | |
tree .git | |
cat .git/refs/heads/chat-feature | |
nano .git/refs/heads/another-branch | |
git branch | |
git branch -d another-branch | |
git branch old HEAD~1 | |
git tag v1.0 | |
git tag -d v1.0 | |
git log | |
git tag -d old | |
git branch -d old | |
tree .git | |
git branch | |
git checkout chat-feature | |
git branch | |
touch chat.rb | |
nano chat.rb | |
git status | |
git add chat.rb | |
git commit -m 'spike out chat feature' | |
git branch -d master | |
git branch master | |
git checkout master | |
git branch -d chat-feature | |
git branch chat-feature | |
git checkout chat-feature | |
git branch -d master | |
git branch master HEAD~1 | |
ls | |
git checkout master | |
ls | |
nano README.md | |
git status | |
git add README.md | |
git commit -m 'update readme' | |
git checkout chat-feature | |
subl . | |
git checkout master | |
git checkout chat-feature | |
git checkout master | |
git diff chat-feature | |
git merge chat-feature | |
git branch -d chat-feature | |
git log | |
git chekout 1e5754fd1fc55f0465cfe341f840d1e1f97c0858 | |
git checkout 1e5754fd1fc55f0465cfe341f840d1e1f97c0858 | |
git checkout master | |
subl README.md | |
git status | |
git log | |
git checkout 1e5754fd1fc55f0465cfe341f840d1e1f97c0858 | |
git status | |
git checkout master | |
git add README.md | |
git checkout 1e5754fd1fc55f0465cfe341f840d1e1f97c0858 | |
git checkout master | |
git log | |
git status | |
git checkout a9b7960c25b29f41ce2a2dc3a035d26eaf70ec3e | |
nano README.md | |
git reset README.md | |
git status | |
git reset --hard HEAD | |
git statu | |
git status | |
clear | |
git checkout HEAD~1 | |
git log | |
git checkout master | |
git show --pretty=raw HEAD | |
git checkout HEAD~2 | |
git log | |
git checkout master | |
git checkout -b cause-conflict | |
nano README.md | |
git add README.md | |
git commit -m 'readme details' | |
git checkout master | |
nano README.md | |
git add README.md | |
git commit -m 'update readme' | |
git log --graph | |
git log --graph --all | |
git merge cause-conflict | |
git status | |
nano README.md | |
git status | |
git add README.md | |
git status | |
git commit | |
git log --graph | |
cat README.md | |
git diff HEAD~1 | |
ls -alh | |
git branch -a | |
git remote | |
ls -alh | |
git remote add origin https://github.com/johndbritton/inqbarna | |
git remote | |
git remote -a | |
git remote -v | |
git push | |
git push --set-upstream origin master | |
git branch | |
git branch -d cause-conflict | |
git branch -a | |
tree .git | |
cat .git/refs/remotes/origin/master | |
git remote | |
git branch | |
git checkout -b anotherbranch | |
git branch -d master | |
git branch master HEAD~1 | |
git checkout master | |
git push | |
git push origin master | |
git checkout anotherbranch | |
git branch -d master | |
git branch master | |
git checkout master | |
git branch -d anotherbranch | |
git fetch | |
git merge origin/master | |
git status | |
git checkout -b feature-x | |
~/gitscripts/generaterandomchanges 5 awesome.rb | |
~/gitscripts/generaterandomchanges 5 awesome rb | |
git push origin feature-x | |
gitk | |
git checkout master | |
touch foo | |
git add foo | |
git commit -n 'foo' | |
git commit -m 'foo' | |
git log --graph | |
git log --graph --all | |
git cherry-pick c7c698ddbd9e607b5beeb0d2b7333fa8b0a34c7d | |
git log | |
git show HEAD --pretty=true | |
git show --pretty=true HEAD | |
git show master --pretty=raw | |
git log | |
git log --graph --all | |
touch awesome5.rb | |
nano awesome.rb | |
nano awesome5.rb | |
git add awesome5.rb | |
git commit -m 'something' | |
git log --graph --all | |
git cherry-pick fa5068913837e02820bbf989ec02bb0e1c9a3386 | |
git status | |
nano awesome.rb | |
nano awesome5.rb | |
clear | |
git status | |
git reset --hard HEAD | |
ls | |
nano README.md | |
git status | |
nano foo | |
git status | |
git add foo | |
git reset foo | |
git status | |
git reset foo | |
git reset --hard HEAD | |
nano README.md | |
git status | |
git stash | |
git status | |
nano foo | |
git add foo | |
git commit -m 'foo' | |
git stash pop | |
git status | |
git diff | |
git log | |
git checkout --orphan | |
git branch --orphan | |
git help branhc | |
git help branch | |
git help checkout | |
git checkout -b --orphan | |
git checkout -b --orphan ios | |
git checkout -b ios --orphan | |
git help checkout | |
git checkout --orphan ios | |
ls | |
git status | |
git rm * | |
rm * | |
ls | |
git status | |
git add -u . | |
git status | |
touch foo.objc | |
git add foo.objc | |
git commit -m 'start the ios project' | |
git log | |
git checkout master | |
ls | |
git log | |
git log --graph --all | |
git checkout ios | |
git log --graph --al | |
git log --graph --all | |
git log --graph --all --pretty=oneline | |
clear |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment