Yesterday, we had a member of our team do a git push --force
inside of our Bitbucket repository. I am aware of who it was, but I am wondering if it is possible to gather which commits were force pushed into the repository.
The information I am looking for from the git log / history is something like this -
+ 1951097...9b070f0 tower -> origin/tower (forced update)
I saw this message when I was trying to pull into my local branch and encountered merge conflicts after the force push, but I havent been able to see it anywhere else except that one time. Is there a place where I can see all of the commits (specifically ones with that (forced update)
tag next to them?) Running Git reflog
and git log
do not seem to return this information.
I saw this post(which is hilarious) that is similar - How can I find out who force pushed in git?
Instead of looking for the specific person (like the asker in the previous question), I am just looking for the commits that were pushed into the repo with --force after I clone it locally. Is this information possible to gather, or am I out of luck?
Thanks.