threads / discuss / 47769

repository history?

Subject: repository history?

## tl;dr

3 messages between Feb 6, 2018 and Feb 6, 2018.

replies: 2people: 2as markdown or json

Zsolt SZALAI· Feb 6, 2018, 09:41 UTC · lore
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· Feb 6, 2018, 09:48 UTC · re: Zsolt SZALAI · lore

Re: repository history?

On Tue, Feb 6, 2018 at 1:41 AM, Zsolt SZALAI <zs.szalai@gmail.com> wrote:
Show 8 quoted lines
> 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· Feb 6, 2018, 10:01 UTC · re: Bryan Turner · lore

Re: repository history?

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:
Show 20 quoted lines
> 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

← back to recent threads