Upload
matthew-mccullough
View
392
Download
0
Embed Size (px)
Citation preview
FINDING THINGS IN GITSearching, Logging, Bisecting And Pickaxing
Finding Things in Git
git log
Code Changes
git log -S<string>
git log -G<regex>
People
git log --author="Matthew"
git log --committer="Matthew"
Filenames & Status
git log -- <filename>
git log --follow -- <filename>
git log --diff-filter=M
Messages
git log --grep=<regex>
Dates
git log --before=<date>
git log --after=<date>
Boolean
git log --not --grep=<regex>
File Contents
git blame <filename>
git blame -C <filename>
Config
git config --get-regexp 'alias*'
Ignored Files
git clean -ndX
git ls-files --others --ignored --exclude-standard
Orphans
gitk --all `git reflog | cut -c1-7`&
git --pretty=oneline --abbrev-commit --graph --decorate `git reflog | cut -c1-7`
Bisect
git bisect startgit bisect bad <BAD>git bisect good <GOOD>git bisect run <tool>
Searching in GitHUB
Site Searchhttps://github.com/search
Repo Search https://github.com/matthewmccullough/hellogitworld/
Closing and Q&A
github.com/training/free
FINDING THINGS IN GITSearching, Logging, Bisecting And Pickaxing