# repository history?

3 messages from 2018-02-06 to 2018-02-06. Participants: Zsolt SZALAI, Bryan Turner.
Thread: https://gitlist.dev/t/47769

## Zsolt SZALAI, 2018-02-06 09:41

Subject: repository history?
Message-ID: <CAOKXNqBSqEP7aikjM1GE=p7jWBsN13Xy3qVL-on7RnrUrwi+bg@mail.gmail.com>
URL: https://gitlist.dev/e/CAOKXNqBSqEP7aikjM1GE%3Dp7jWBsN13Xy3qVL-on7RnrUrwi%2Bbg%40mail.gmail.com

```
Hi,

I wonder if there is a feature with which the history of the
repository can be listed?
i am interested in especially the usecases of pull and push, i.e. to
query when the a branch was refreshed with remote changes and which
commits were pulled, things like that.
Is this possible?

Thanks,
Zsolt

```

## Bryan Turner, 2018-02-06 09:48

Subject: Re: repository history?
Message-ID: <CAGyf7-Fy_APBx8aK2_L5nQN5NfLSxh+qy12Sd8QmLh3LP4KRkQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGyf7-Fy_APBx8aK2_L5nQN5NfLSxh%2Bqy12Sd8QmLh3LP4KRkQ%40mail.gmail.com
In-Reply-To: <CAOKXNqBSqEP7aikjM1GE=p7jWBsN13Xy3qVL-on7RnrUrwi+bg@mail.gmail.com>

```
On Tue, Feb 6, 2018 at 1:41 AM, Zsolt SZALAI <zs.szalai@gmail.com> wrote:
> Hi,
>
> I wonder if there is a feature with which the history of the
> repository can be listed?
> i am interested in especially the usecases of pull and push, i.e. to
> query when the a branch was refreshed with remote changes and which
> commits were pulled, things like that.
> Is this possible?

Have you looked at the "git reflog"[1] command? That can show the old
and new SHAs when a ref changes, and you can use "git log" to
determine which commits were added. That said, it's most useful for
fetch/pull; push information won't be as easily derived from your
local reflogs.

[1] https://git-scm.com/docs/git-reflog

Hope this helps!
Bryan

```

## Zsolt SZALAI, 2018-02-06 10:01

Subject: Re: repository history?
Message-ID: <CAOKXNqBbZKm7hXPPVGab4f6tvmJOLYiPFNQkFVShv_a-gJwFzA@mail.gmail.com>
URL: https://gitlist.dev/e/CAOKXNqBbZKm7hXPPVGab4f6tvmJOLYiPFNQkFVShv_a-gJwFzA%40mail.gmail.com
In-Reply-To: <CAGyf7-Fy_APBx8aK2_L5nQN5NfLSxh+qy12Sd8QmLh3LP4KRkQ@mail.gmail.com>

```
Nice, thanks.
For what I needed now, it helps.

Thanks,
Zsolt
SZALAI Zsolt


On Tue, Feb 6, 2018 at 10:48 AM, Bryan Turner <bturner@atlassian.com> wrote:
> On Tue, Feb 6, 2018 at 1:41 AM, Zsolt SZALAI <zs.szalai@gmail.com> wrote:
>> Hi,
>>
>> I wonder if there is a feature with which the history of the
>> repository can be listed?
>> i am interested in especially the usecases of pull and push, i.e. to
>> query when the a branch was refreshed with remote changes and which
>> commits were pulled, things like that.
>> Is this possible?
>
> Have you looked at the "git reflog"[1] command? That can show the old
> and new SHAs when a ref changes, and you can use "git log" to
> determine which commits were added. That said, it's most useful for
> fetch/pull; push information won't be as easily derived from your
> local reflogs.
>
> [1] https://git-scm.com/docs/git-reflog
>
> Hope this helps!
> Bryan

```
