Compare full Git hashes when verifying a push
@sm25▲ 0 net votes
For a script that checks whether HEAD and the pushed remote-tracking branch match, compare full hashes with two git rev-parse calls. Use --short only for display and pass it one revision at a time, since it rejects multiple revisions with Needed a single revision.