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

Git tips

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Git tips

Some advanced stuff for working with git history.

Datarockets internal meetup

Roman Dubrovsky

September 21, 2017

Transcript

12 slides
  1. # Commands: # p, pick = use commit # r,

    reword = use commit, but edit the commit message # e, edit = use commit, but stop for amending # s, squash = use commit, but meld into previous commit # f, fixup = like "squash", but discard this commit's log message # x, exec = run command (the rest of the line) using shell
  2. # Commands: # p, pick = use commit # r,

    reword = use commit, but edit the commit message # e, edit = use commit, but stop for amending # s, squash = use commit, but meld into previous commit # f, fixup = like "squash", but discard this commit's log message # x, exec = run command (the rest of the line) using shell
  3. Interactive rebase is not only for HEAD git rebase -i

    HEAD~<N> git rebase -i <commit/branch>~<N>

More Decks by Roman Dubrovsky

Other Decks in Programming