When a commit was pushed into a remote Git Repo

David S

Is there a way to show when a particular commit was pushed into a remote repo? In other words, I know who made a change (and when it was committed), but I don't know when it was pushed to my production environment in heroku (note: heroku just uses a git push to deploy)

Ideally, it would be something like:

$ git remote myprodrepo show 201421b78ae73a21bc6045a78b4b5db5c54697e7

and I could see when that commit actually got pushed into that repo.

note: the syntax above does not work, and is only there in an attempt to sort of show what I'm trying to accomplish.

(I hope this question makes sense - please ask questions if it doesn't.)

VonC

No, Git don't record any log for those operations.

An intermediate authorization layer like Gitolite can keep such a record, but that may not be a good fit with your current setup.

Bside heroku releases suggested by Chris, the one pure git way to get a recent record of all those operations (not just push) is suggested here, in the config of your remote git repo:

# required for a bare repo
git config core.logAllRefUpdates true

git reflog --date=local master

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is git stash stack pushed to the remote repo?

From Dev

Why does Git show my local "pull from remote" when I push my commit to the remote repo?

From Dev

Fetch specific commit from remote git repo

From Java

Undo a particular commit in Git that's been pushed to remote repos

From Dev

How to change commit message after pushed to remote in Git

From Dev

Git - folder not pushed to repo

From Dev

How can I automatically push the data to a git-repo when it's pushed to a bare git repo?

From Dev

How can I automatically push the data to a git-repo when it's pushed to a bare git repo?

From Dev

Git repo hosted on Bitbucket.. Count each day where I pushed a commit

From Dev

Git - Merging two commits which are not in serial sequence - Commits pushed to remote repo already

From Dev

Check who pushed a Git commit

From Dev

change a git commit already pushed

From Dev

retrieve git commit never pushed

From Dev

Check who pushed a Git commit

From Dev

Undoing commits that have been pushed to remote repo

From Java

Receiving "fatal: Not a git repository" when attempting to remote add a Git repo

From Dev

How to commit a git repo into a git repo (not submodule)

From Dev

Working with remote repo git

From Dev

Git clone remote repo into another remote repo

From Dev

Is it possible to get commit logs/messages of a remote git repo without git clone

From Dev

Remove pushed files from Git repo

From Dev

How to perform some action when a user pushes to a remote git repo

From Dev

Change name in already pushed commit in Git

From Dev

Change the author of last commit in Git(pushed remotely)

From Dev

Unable to commit to an empty git repo

From Dev

Commit symlink outside of repo to git

From Dev

clone git repo at specfic commit

From Dev

git sparseCheckout repo pushes full repo to remote

From Dev

Push git alias to remote repo

Related Related

  1. 1

    Is git stash stack pushed to the remote repo?

  2. 2

    Why does Git show my local "pull from remote" when I push my commit to the remote repo?

  3. 3

    Fetch specific commit from remote git repo

  4. 4

    Undo a particular commit in Git that's been pushed to remote repos

  5. 5

    How to change commit message after pushed to remote in Git

  6. 6

    Git - folder not pushed to repo

  7. 7

    How can I automatically push the data to a git-repo when it's pushed to a bare git repo?

  8. 8

    How can I automatically push the data to a git-repo when it's pushed to a bare git repo?

  9. 9

    Git repo hosted on Bitbucket.. Count each day where I pushed a commit

  10. 10

    Git - Merging two commits which are not in serial sequence - Commits pushed to remote repo already

  11. 11

    Check who pushed a Git commit

  12. 12

    change a git commit already pushed

  13. 13

    retrieve git commit never pushed

  14. 14

    Check who pushed a Git commit

  15. 15

    Undoing commits that have been pushed to remote repo

  16. 16

    Receiving "fatal: Not a git repository" when attempting to remote add a Git repo

  17. 17

    How to commit a git repo into a git repo (not submodule)

  18. 18

    Working with remote repo git

  19. 19

    Git clone remote repo into another remote repo

  20. 20

    Is it possible to get commit logs/messages of a remote git repo without git clone

  21. 21

    Remove pushed files from Git repo

  22. 22

    How to perform some action when a user pushes to a remote git repo

  23. 23

    Change name in already pushed commit in Git

  24. 24

    Change the author of last commit in Git(pushed remotely)

  25. 25

    Unable to commit to an empty git repo

  26. 26

    Commit symlink outside of repo to git

  27. 27

    clone git repo at specfic commit

  28. 28

    git sparseCheckout repo pushes full repo to remote

  29. 29

    Push git alias to remote repo

HotTag

Archive