Re: Seeing differences at origin/branch?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Adam <thomas.adam22@...>
Cc: <git@...>
Date: Tuesday, July 17, 2007 - 12:23 pm

On Tue, Jul 17, 2007 at 04:53:03PM +0100, Thomas Adam wrote:

After first doing a "git fetch", to update your local view of those
remote branches:

Commits on your current branch, not in origin:

	git diff origin..HEAD

Commits in the origin branch, not in your current branch (so this is
what you'd probably get if you pulled):

	git diff HEAD..origin

Commits in either one, not in the other (the union of the above two):

	git diff HEAD...origin

The "HEAD" is actually optional in all the above.

And, finally, I think

	gitk HEAD...origin

gives the clearest picture of what's actually going on.

--b.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Seeing differences at origin/branch?, Thomas Adam, (Tue Jul 17, 11:53 am)
Re: Seeing differences at origin/branch?, J. Bruce Fields, (Tue Jul 17, 12:23 pm)
Re: Seeing differences at origin/branch?, Brian Downing, (Tue Jul 17, 12:12 pm)