# Question - List current hashs of branches

3 messages from 2015-10-02 to 2015-10-05. Participants: Golarits, Zsigmond (Nokia - HU/Budapest), Junio C Hamano.
Thread: https://gitlist.dev/t/40475

## Golarits, Zsigmond (Nokia - HU/Budapest), 2015-10-02 18:54

Subject: Question - List current hashs of branches
Message-ID: <0F7E16B8B216214784C1BD8596C189CA09176151@DEMUMBX012.nsn-intra.net>
URL: https://gitlist.dev/e/0F7E16B8B216214784C1BD8596C189CA09176151%40DEMUMBX012.nsn-intra.net

```
Hello,

How can I get the current commit-hashes of the remote and local branches without check them out?

Br,
Zsigmond Golarits

```

## Junio C Hamano, 2015-10-02 18:58

Subject: Re: Question - List current hashs of branches
Message-ID: <CAPc5daX3Vch61Rb0=Htfx2uJcuCxyznnWFQ54uqhpATFG3KL8g@mail.gmail.com>
URL: https://gitlist.dev/e/CAPc5daX3Vch61Rb0%3DHtfx2uJcuCxyznnWFQ54uqhpATFG3KL8g%40mail.gmail.com
In-Reply-To: <0F7E16B8B216214784C1BD8596C189CA09176151@DEMUMBX012.nsn-intra.net>

```
for-each-ref & ls-remote?

On Fri, Oct 2, 2015 at 11:54 AM, Golarits, Zsigmond (Nokia -
HU/Budapest) <zsigmond.golarits@nokia.com> wrote:
> 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), 2015-10-05 07:29

Subject: RE: Question - List current hashs of branches
Message-ID: <0F7E16B8B216214784C1BD8596C189CA0917BB7C@DEMUMBX012.nsn-intra.net>
URL: https://gitlist.dev/e/0F7E16B8B216214784C1BD8596C189CA0917BB7C%40DEMUMBX012.nsn-intra.net
In-Reply-To: <CAPc5daX3Vch61Rb0=Htfx2uJcuCxyznnWFQ54uqhpATFG3KL8g@mail.gmail.com>

```
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:
> 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

```
