HOWTO: arc diff with the particular commit in the past

  • Create the branch via hash
    git branch preview 63c3ec098181b81e44a018e153de481c8ed5df7b
  • Switch to new branch
    git checkout preview
  • Checkout needed files from the original branch
    git checkout master test.js
  • Commit changes
    git commit -am "for arc diff"
  • arc diff --preview
  • Now you can delete this branch


  1. Nice, but you could also easily use arcanists base rules. One of them is prompting the base commit id:
    arc diff –base arc:prompt
    The you can prompt the commit id or an expression like HEAD~2 or commit id~3

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.