Create patch or diff file from git repository for target directory and apply it to another different git repository with different directory

238 views Asked by At

Here is similar question.

git format-patch -k R1..R2

But I want only commits from current directory and removing relative path or change path at all

For example by doing:

git format-patch -k R1..R2 .

I get patches with ext/DbAccess/Mojolicious/Command/db_env.pm path. But I want Mojolicious/Command/db_env.pm because I am currently at ext/DbAccess directory.

Is this possible?

0

There are 0 answers