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

My favorite (underused) git features

My favorite (underused) git features

The talk reminds the dear user that git-reflog is always there for you. It also shows that git-rebase is no black magic and a -i can help you clean up the mess you made.

Maximilian Haack

February 21, 2013
Tweet

Other Decks in Programming

Transcript

  1. git-reflog(1) “Reflog is a mechanism to record when the tip

    of branches are updated. This command is to manage the information recorded in it.” http://git-scm.com/docs/git-reflog $ git help reflog
  2. git-reflog(1) git reflog expire [--dry-run] [--stale-fix] [--verbose] [--expire=<time>] [--expire-unreachable=<time>] [--all]

    <refs>... git reflog delete ref@{specifier}... git reflog [show] [log-options] [<ref>]
  3. git-rebase(1) “git-rebase - Forward-port local commits to the updated upstream

    head” http://git-scm.com/docs/git-rebase $ git help rebase
  4. git-rebase(1) git rebase [-i | --interactive] [options] [--exec <cmd>] [--onto

    <newbase>] [<upstream>] [<branch>] git rebase [-i | --interactive] [options] [--exec <cmd>] [--onto <newbase>] --root [<branch>] git rebase --continue | --skip | --abort | --edit-todo
  5. git-rebase(1) -i --interactive “Make a list of the commits which

    are about to be rebased. Let the user edit that list before rebasing. (…)”