Skip to content

Instantly share code, notes, and snippets.

@lornajane
Created August 26, 2015 11:55
Show Gist options
  • Save lornajane/db34c0ae5d8c1649474e to your computer and use it in GitHub Desktop.
Save lornajane/db34c0ae5d8c1649474e to your computer and use it in GitHub Desktop.
History file from my presentation at Laracon "Advanced Git for Developers"
git init mygit
ls
cd mygit/
ls
ls
cd .git/
ls
cat config
git config --local user.email "[email protected]"
cat config
tmux
cd ..
git checkout -b branch1
ls -la .git/refs/heads/
cat .git/refs/heads/master
cat .git/refs/heads/branch1
cd ..
. conflict.sh
less house.txt
git diff
git status
git add -p
git status
git reset
git add house.txt
git reset -p
git status
git commit -m "Finished"
. conflict2.sh
git status
git checkout mas
git checkout master
git log --oneline --decorate --all --graph
git merge awkward
git status
git merge --abort
git merge awkward
git status
vim house.txt
git status
git add house.txt
git status
git commit
git log --oneline --decorate --all --graph
git status
git reset --hard 2823
git log --oneline --decorate --all --graph
git branch another
git config --local rerere.enabled true
git merge awkward
git status
vim house.txt
git add house.txt
git commit
git log --oneline --decorate --all --graph
git checkout another
git merge awkward
git status
vim house.txt
git add house.txt
git commit
cd ..
. rebase.sh
git checkout branch1
git rebase master
git log --oneline --decorate --all --graph
git checkout master
git merge branch1
git log --oneline --decorate --all --graph
git push
git rebase -i HEAD~8
git log --oneline --decorate --all --graph
git log --oneline
git log --oneline
git log --oneline --decorate --all --graph
cd ..
. diff.sh
git status
git diff
git diff --staged
git diff HEAD
git difftool HEAD
git config --local diff.tool meld
git difftool HEAD
cd ..
. difftool.sh
ls
libreoffice document.odt
git status
git diff
cd ..
. bisect.sh
git bisect start
git log
git log --oneline
git bisect good 2b4d
git bisect bad
git bisect visualize
vim test.sh
git bisect run ./test.sh
git bisect reset
cd ..
. submodules.sh
cat .git
cat .gitmodules
git commit -m "adding the submodule"
cd submod/
ls
vim file1.txt
git status
cd ..
git status
cd submod/
git status
git add -p
git commit -m "edited the file"
git push
cd ..
git status
git submodule update
git status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment