Git:暂存补丁的能力
Git 的后续内容:能够在不接触工作树的情况下暂存特定文件内容:
我想通过暂存补丁(针对 HEAD)来修改一个(文本)文件的索引,而无需更改工作树树文件状态。这可能吗?
Follow-up from Git: ability to stage a certain file content without touching the working tree:
I want to modify the index of one (text) file by staging a patch (against HEAD) without having to change the working tree file state. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要
git apply --cached
从手册页:
You want
git apply --cached
From the man page: