git - How to check push records that are not commit records
黄舟
黄舟 2017-05-17 10:02:58
0
2
934

At work, I encountered a colleague who made a commit but may not have pushed it. I pushed it first, which caused him to overwrite his original code when pulling, so there was a situation where I needed to query the push record.
I checked many ways and the results were all the same. Only commit records can be queried, no push records

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
習慣沉默

How can it be overwritten? It is impossible for git to lose your submission. Unless there is a wrong operation.

If there are changes in the same location, a conflict will definitely be reported.

If the changes are to different locations, there will be no impact.

滿天的星座

As far as I know, there is no push record in git. The committer, submission date, and parent commit id have been recorded in detail. You can understand it all by looking at the commit history

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template