Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Gitting like a Pro

Gitting like a Pro

Git recipes for healthier coding

Stratos Pavlakis

June 13, 2017
Tweet

More Decks by Stratos Pavlakis

Other Decks in Technology

Transcript

  1. # do some less typing git config --global alias.co checkout

    git config --global alias.st status # shell out if needed la=!git config -l | grep alias | cut -c 7- # style your output log --graph \ --pretty=format':%C(yellow)%h%C(auto)%d%Creset %Creset%s %C(242)<%an>%Creset'
  2. Programmer nds 1395 con icts after ‘git rebase develop’ 3

    days before the deadline Gustav Courbet, 1844–1845 Oil paint
  3. REVERT A BRANCH Find the mainline parent (X) git cat-

    le -p <merge-commit> Revert the merge commit git revert -m X <merge-commit>