don’t be a git
TRANSCRIPT
![Page 1: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/1.jpg)
DON’T BE A GIT@mannersd
![Page 2: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/2.jpg)
![Page 3: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/3.jpg)
GIT BASICSThings I use everyday aka the boring but useful stuff
![Page 4: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/4.jpg)
GIT ADD -PWave to that debug as you add it to staged files
![Page 5: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/5.jpg)
GIT RESET -PCause sometimes you stage that var_dump
![Page 6: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/6.jpg)
GIT COMMITEither –m and add your message or set a commit message
template.
![Page 7: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/7.jpg)
REGULAR REVIEWS!
If you are not attached to a review you are not getting in!
![Page 8: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/8.jpg)
GIT ADVANCEDAll the “fun” stuff that you wont use that often. Sorry
![Page 9: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/9.jpg)
GIT LOGgit log --oneline --decorate --all –graph
Log like you are in a GUI
![Page 10: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/10.jpg)
git log --oneline --decorate --all –graph
![Page 11: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/11.jpg)
GIT BISECTFind the bugs after your holiday!
![Page 12: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/12.jpg)
Git Bisect
Good
??? Bad
![Page 13: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/13.jpg)
Git bisect
![Page 14: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/14.jpg)
GIT REREREWhy repeat yourself, repeat yourself!
![Page 15: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/15.jpg)
git config --global rerere.enabled true
![Page 16: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/16.jpg)
git config --global rerere.enabled true
![Page 17: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/17.jpg)
GIT BLAME-SOMEONE-ELSE
If all else fails blame someone else and get out!
![Page 18: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/18.jpg)
Git blame-someone-else
![Page 19: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/19.jpg)
GIT FINAL THOUGHTS
Use it, learn it, hate it, love it!
![Page 20: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/20.jpg)
Resources• https://github.com/jayphelps/git-blame-someone-else• https://leanpub.com/gitworkbook• https://xkcd.com/1597/
![Page 21: Don’t be a git](https://reader035.vdocuments.net/reader035/viewer/2022070516/5871af421a28abda6a8b641d/html5/thumbnails/21.jpg)
DON’T BE A GIT@mannersd