don’t be a git

21
DON’T BE A GIT @mannersd

Upload: dmanners87

Post on 08-Jan-2017

205 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Don’t be a git

DON’T BE A GIT@mannersd

Page 2: Don’t be a git
Page 3: Don’t be a git

GIT BASICSThings I use everyday aka the boring but useful stuff

Page 4: Don’t be a git

GIT ADD -PWave to that debug as you add it to staged files

Page 5: Don’t be a git

GIT RESET -PCause sometimes you stage that var_dump

Page 6: Don’t be a git

GIT COMMITEither –m and add your message or set a commit message

template.

Page 7: Don’t be a git

REGULAR REVIEWS!

If you are not attached to a review you are not getting in!

Page 8: Don’t be a git

GIT ADVANCEDAll the “fun” stuff that you wont use that often. Sorry

Page 9: Don’t be a git

GIT LOGgit log --oneline --decorate --all –graph

Log like you are in a GUI

Page 10: Don’t be a git

git log --oneline --decorate --all –graph

Page 11: Don’t be a git

GIT BISECTFind the bugs after your holiday!

Page 12: Don’t be a git

Git Bisect

Good

??? Bad

Page 13: Don’t be a git

Git bisect

Page 14: Don’t be a git

GIT REREREWhy repeat yourself, repeat yourself!

Page 15: Don’t be a git

git config --global rerere.enabled true

Page 16: Don’t be a git

git config --global rerere.enabled true

Page 17: Don’t be a git

GIT BLAME-SOMEONE-ELSE

If all else fails blame someone else and get out!

Page 18: Don’t be a git

Git blame-someone-else

Page 19: Don’t be a git

GIT FINAL THOUGHTS

Use it, learn it, hate it, love it!

Page 20: Don’t be a git

Resources• https://github.com/jayphelps/git-blame-someone-else• https://leanpub.com/gitworkbook• https://xkcd.com/1597/

Page 21: Don’t be a git

DON’T BE A GIT@mannersd