threads / discuss / 40475

Question - List current hashs of branches

Subject: Question - List current hashs of branches

## tl;dr

3 messages between Oct 2, 2015 and Oct 5, 2015.

replies: 2people: 2as markdown or json

Junio C Hamano· Oct 2, 2015, 18:58 UTC · re: Golarits, Zsigmond (Nokia - HU/Budapest) · lore

Re: Question - List current hashs of branches

for-each-ref & ls-remote?

On Fri, Oct 2, 2015 at 11:54 AM, Golarits, Zsigmond (Nokia - HU/Budapest) <zsigmond.golarits@nokia.com> wrote:

Show 10 quoted lines
> Hello,
>
> How can I get the current commit-hashes of the remote and local branches without check them out?
>
> Br,
> Zsigmond Golarits
> --
> 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
Golarits, Zsigmond (Nokia - HU/Budapest)· Oct 5, 2015, 07:29 UTC · re: Junio C Hamano · lore

RE: Question - List current hashs of branches

Hello,
Thanks, for YR reply!
I'd like any solution:
  - the commit hash of a chosen local or remote branch            OR
  - a list of each commit hashes of all local or/and remote branches.

I'd like to write a tool to check more branches in more repos, if they are up to date or there has been a new remote commit (or maybe I did local commit not pushed). We usually works parallel in more branches in more repositories.

Br Zsigmond

-----Original Message-----
From: jch2355@gmail.com [mailto:jch2355@gmail.com] On Behalf Of EXT Junio C Hamano
Sent: Friday, October 02, 2015 8:59 PM
To: Golarits, Zsigmond (Nokia - HU/Budapest)
Cc: git@vger.kernel.org
Subject: Re: Question - List current hashs of branches
for-each-ref & ls-remote?

On Fri, Oct 2, 2015 at 11:54 AM, Golarits, Zsigmond (Nokia - HU/Budapest) <zsigmond.golarits@nokia.com> wrote:

Show 10 quoted lines
> Hello,
>
> How can I get the current commit-hashes of the remote and local branches without check them out?
>
> Br,
> Zsigmond Golarits
> --
> 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

← back to recent threads