Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Whenever I see an answer with git log and "2-dots-not-3", it always remind me of stackoverflow.com/questions/53569/… ;) Commented Jan 6, 2010 at 22:56
  • 1
    Just to add it to the answer - if there is no upstream setup this command result in saying no upstream was setup. Run git branch --set-upstream master origin/<branch> to setup upstream if you are inclined to use this command to see commits that are staged. Commented Aug 7, 2013 at 13:27
  • This will compare with default branch in origin, not current remote branch. Commented Jun 18, 2014 at 7:20
  • fatal: ambiguous argument 'origin..': unknown revision or path not in the working tree. Commented Nov 22, 2020 at 23:43
  • Nope, it shows all latest commits that differ, but does not answer the original Q. Commented May 12, 2021 at 15:46