don’t be a git
TRANSCRIPT
DON’T BE A GIT@mannersd
GIT BASICSThings I use everyday aka the boring but useful stuff
GIT ADD -PWave to that debug as you add it to staged files
GIT RESET -PCause sometimes you stage that var_dump
GIT COMMITEither –m and add your message or set a commit message
template.
REGULAR REVIEWS!
If you are not attached to a review you are not getting in!
GIT ADVANCEDAll the “fun” stuff that you wont use that often. Sorry
GIT LOGgit log --oneline --decorate --all –graph
Log like you are in a GUI
git log --oneline --decorate --all –graph
GIT BISECTFind the bugs after your holiday!
Git Bisect
Good
??? Bad
Git bisect
GIT REREREWhy repeat yourself, repeat yourself!
git config --global rerere.enabled true
git config --global rerere.enabled true
GIT BLAME-SOMEONE-ELSE
If all else fails blame someone else and get out!
Git blame-someone-else
GIT FINAL THOUGHTS
Use it, learn it, hate it, love it!
Resources• https://github.com/jayphelps/git-blame-someone-else• https://leanpub.com/gitworkbook• https://xkcd.com/1597/
DON’T BE A GIT@mannersd