How to change default branch when using arc diff?

The first time I used arc diff to submit a branch, it asked me which branch to compare changes to. I entered origin/master. This compares it to all the changes that have been made to the Master branch. Now it always uses the Master to compare it to which I want to change to origin/develop.

I was wondering if there was a way to change the default branch somehow so instead of using arc diff origin/develop I can just use arc diff.

  • Arcanist - doing an “arc diff” after a git push
  • How to set up Arcanist workflow with reviewer lag time?
  • Create revision per feature branch
  • Merging a branch of a branch after first branch is squashed when merged to master
  • Can you arc diff against a particular git branch?
  • Phabricator review all commits
  • How to setup current branch (dev) to push to refs/remotes/test with git push only?
  • Gitlab Best Practice for having multiple instances of the same codebase
  • Git stash freezes (console becomes unresponsive)
  • Extract a particular version file from Git repository
  • Who touched my git assume-unchanged bit?
  • GnuTLS: Failed to acquire random data with GIT_SSH_COMMAND
  • One Solution collect form web for “How to change default branch when using arc diff?”

    Not sure why this is downvoted, but there are numerous occasions where we intend to create revisions diffed against a different branch.

    When you selected origin/master, arc writes this info to a file .git/arc/default-relative-commit.

    Edit this file to contain a different relative commit branch to contain,


    Your next revisions will get created against the origin/develop branch when you issue arc diff.

    You can change it back to origin/master when you need to create revisions off master again.

    Hope this helps.

    Git Baby is a git and github fan, let's start git clone.