Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是类似的问题。
git format-patch -k R1..R2
但我只想从当前目录提交并完全删除相对路径或更改路径
例如通过这样做:
git format-patch -k R1..R2 .
我得到带有ext/DbAccess/Mojolicious/Command/db_env.pm路径的补丁。但我想要Mojolicious/Command/db_env.pm,因为我目前在ext/DbAccess目录中。
ext/DbAccess/Mojolicious/Command/db_env.pm
Mojolicious/Command/db_env.pm
ext/DbAccess
这可能吗?