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.)
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.
Comments