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

Speedy Git

Speedy Git

How to increase the speed from brain to/from git

Paul McGrath

June 10, 2017
Tweet

More Decks by Paul McGrath

Other Decks in Programming

Transcript

  1. Speedy Commands  git push master~2:master  git pull –rebase

     (git fetch origin, git rebase origin/master)
  2. Using your favourite text editor  In ~/.bashrc and ~/bin

     My editor is much easier to use for interactive rebase, commit –amend etc.  Share your setup – it’s all config files
  3. IF you have these problems…  Features tied together 

    Can’t unpick the log  Branching from untested code  Your product is the sum of independent features  Features can be easily removed  You have a safe point to branch from
  4. Create a safe branching point  http:// scottchacon.com/2011/08/31/github-flow.html  git

    merge develop  Keep it as light-weight as possible  …Yeah, but what about conflicts? DEVELOP MASTER MY LOVELY FEATURE
  5. Speedy Branches  Avoiding conflicts  Small commits  merge

    safe point into branches  Even better… rebase!  …Yeah, but I don’t want to see all these branches all over our repo…