Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的分支主线上有 3 个本地提交,位于远程仓库之前。如何获取最早的本地提交的哈希值?
例子: A <- HEAD(mainline) local B C D <- origin/mainline 与远程同步
例子:
A <- HEAD(mainline) local B C D <- origin/mainline 与远程同步
如何获取提交 C 的哈希值?
git log --pretty=%H origin/master..HEAD |tail -n1