TortoiseGit: apply patches, added files

I have 2 files (one modified and a new file) modified for commit. I want to create a patch for this. I created a patch using TortoiseGit, and I see that this patch contains changes for both files.

However, when I apply this patch to some repository, it applies both changes, but the new file does not appear as added. Because of this, if I just say: git commit, the newly added file is skipped from commit.

Is this a TortoiseGit error or am I something wrong?

I tried to create a patch using 'git --diff', but in this case it does not include the added file as part of the patch at all.

Thank you Vibhav Agrawal

0
source share
1

TortoiseGit, , ( ), Create serial patch... Number of Commits 1.

Apply serial patch... Add, , . Apply.

, , .

0

All Articles