I use "git ls-remote ." to determine the commit hashes of all local
and remote branches. This is a pretty easy way to see if your local
(production) branches are in sync with your remote (git server) ones.
Hope that helps.
On Sep 2, 2009, at 7:17 AM, julian wrote:
> How do I know if there have been changes to a remote tracked repo that
> have not been pulled to my local repo, from my local repo without
> actually doing a pull?
> My scenario is as follows. I have a bare repo on my "git server", a
> repo on the production server, and a repo on my development machine.
> I need to run a script on my production server that checks to see if
> it is up to date with the bare repo on the git server.
> I will probably just compare the output of git-log from the bare repo
> to the same output on the production server using ssh (since, in the
> end it seems that's what git would do anyways), but I was wondering if
> there was an actual git command that accomplishes the same task.
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To post to this group, send email to firstname.lastname@example.org
To unsubscribe from this group, send email to
For more options, visit this group at