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

Prepping Commits

Prepping Commits

Git is like a very sharp knife: it's a powerful tool, but you can hurt yourself badly if you're not careful.

Alex Tercete

July 25, 2017
Tweet

More Decks by Alex Tercete

Other Decks in Programming

Transcript

  1. $ git status $ git diff $ git add -p

    $ git diff --staged $ git commit
  2. $ git add -p $ git commit -m 'fixup! <commit-ref>'

    $ git rebase -i <base-ref> $ git show <new-commit-ref>