简体   繁体   English

git rebase使用待办事项中的每次提交更改的文件

[英]git rebase with changed files per commit in todo

During an interactive rebase, it would be nice if there was an option to provide additional information per commit (preceded by #). 在交互式基础上,如果可以选择为每次提交提供附加信息(以#开头),则很好。 Specifically, files modified for each commit would be helpful. 具体来说,为每次提交修改的文件将很有帮助。 I couldn't see any solution documented in the git rebase command line arguments, but perhaps there is scripted way to do this? 我在git rebase命令行参数中看不到任何解决方案,但是也许有脚本执行此操作?

Just open another window, cd to the repository if needed, and git show <commit-id> to see the full commit with diff. 只需打开另一个窗口,如果需要,可以打开cd到存储库,然后git show <commit-id>查看带有diff的完整提交。 Add --name-status to limit the diff to file-name-and-status, for instance. 添加--name-status以将差异限制为例如文件名和状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM