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

Git Tips

sbone
September 17, 2014

Git Tips

A handful of git tips from a VHX dev lunch.

sbone

September 17, 2014
Tweet

Other Decks in Programming

Transcript

  1. git bisect • find working commit hash • git bisect

    start • git bisect bad • git bisect good 8579541 • git bisect reset
  2. git add ––patch • git add ––patch • Stage this

    hunk [y,n,q,a,d,/,e,?]? • y - yes, n - no, ? - help
  3. git stash • git stash • git stash save “begin

    some function” • git stash list ! • git stash pop stash@{0}
  4. git reset ––hard Clean your working space git clean -f

    Delete untracked files (-n to preview) git diff -w Diff without whitespace