作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
是否有一个选项可以在 HEAD
(绿色下划线)处显示更改的最后一次提交哈希。
我希望这样:HEAD, 476ce2c 简化接口(interface):删除“rs”参数
这将类似于 >>>>>>>
部分
最佳答案
你可以自己就地替换它
find ./ \( -type d -name .git -prune \) -o -type f -print0 | xargs \
sed -i "s/<<<<<<<< HEAD/<<<<<<<< $(git rev-parse --short HEAD)/"
考虑 git log --pretty=reference -n 1 head
作为命令(git rev-parse --short
只是短散列)或引用文档以构建您想要的内容,如 git log --pretty=format:"whatever you like"-n 1 head
https://git-scm.com/docs/pretty-formats
find|xargs
从最佳答案修改为 How to do a recursive find/replace of a string with awk or sed?
关于git - 有没有办法查看提交哈希而不是 HEAD?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66875169/
我是一名优秀的程序员,十分优秀!