2

In Phabricator/Arcanist, there is a command arc diff --preview which lets you see all your code changes in a nice UI before you send it off to code review (see https://secure.phabricator.com/book/phabricator/article/arcanist_diff/ for more details).

What's the equivalent to this in Git?

Michael
  • 736
  • 4
  • 19
  • 1
    That would likely be a pull request on a git hosting service like github. Otherwise you’ll be looking for something using `git diff` – evolutionxbox Jan 26 '18 at 21:49
  • Is there a way to preview what the pull request would look like without actually pushing my local branch to remote? – Michael Jan 26 '18 at 21:55
  • I only know of using the terminal commands. As for a “nice UI” I have no clue. – evolutionxbox Jan 26 '18 at 21:59
  • You probably want `git diff mybranch origin/master` (there are many git UIs, I'm sure most of them will have an equivalent for this). – match Jan 26 '18 at 22:25
  • Possible duplicate of [How can I preview a merge in git?](https://stackoverflow.com/questions/5817579/how-can-i-preview-a-merge-in-git) – max630 Jan 27 '18 at 15:12
  • This is the feature I missed the most when I switch from Phabricator to Github – Harry Su Jun 11 '20 at 00:11

0 Answers0