我有一个包含 6 个文件的 Git 补丁。
我只想从.patch包含上述文件的文件中应用 rrr.php
git-applycommand 包含--excludearg,但不包含--include.
如何仅从.patch文件中应用 rrr.php ?
Joh*_*web 13
你说:
git-apply命令包含--excludearg,但不包含--include
--include=<path-pattern>将更改应用于匹配给定路径模式的文件。这在导入补丁集时很有用,您希望在其中包含某些文件或目录。
尝试:
git apply --include=rrr.php some.patch
Run Code Online (Sandbox Code Playgroud)
使用 Git 版本 1.8.4 验证。
| 归档时间: |
|
| 查看次数: |
5437 次 |
| 最近记录: |