我获取了远程存储库,并将其存储在其中FETCH_HEAD,它有一些内容
cat .git/FETCH_HEAD
# => d11f8ef4a4735a4193633ed2fed90e441d9ce0f8 branch 'hotfix' of xxx
Run Code Online (Sandbox Code Playgroud)
但git-fetch没有显示
git show-ref FETCH_HEAD
# => nothing
Run Code Online (Sandbox Code Playgroud)
为什么?以及如何从FETCH_HEAD获取最后一次提交的SHA?
| 归档时间: |
|
| 查看次数: |
2124 次 |
| 最近记录: |