且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

GIT在特定提交之前获取提交哈希

更新时间:2022-11-15 21:06:05

Use git show HEAD^1. You can replace HEAD with your commit-hash

Edit to take multiple parents into account:

In case you want to see all the parents for a commit hash, you can use git rev-list --parents -n 1 <commithash> or use git show as @Bhaskar suggested in the comments to the question.

The are other ways as well as explained here.

相关阅读

技术问答最新文章