Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by therealplato

3 years ago

i haven't used git range-diff but when local master is behind origin/master and I am trying to diff, I use a `git changes` .gitconfig alias:

    changes = !git diff $(git merge-base HEAD \"$REVIEW_BASE\")

Typically, that's:

    git diff $(git merge-base HEAD origin/master)

0 comments

therealplato

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities