git-apply Questions
1
According to the official git docs:
git apply
--ignore-space-change, --ignore-whitespace
When applying a patch, ignore changes in whitespace in context lines if necessary.
Context lines will pre...
3
I have two sepearate git repos: A and B. Some repository B files are already present in a subfolder of project A. My goal is to create patches for repo B and then applying them to the subfolder wit...
6
I created a diff file by a command:
git --no-pager diff --no-index --stat pathA pathB >\diff.log
Nextly, I executed a command:
git apply --index --ignore-space-change --ignore-whitespace \dif...
2
Solved
I'm trying to apply a .patch file to my source, but it fails because my file index (10655) is older than the patch index (10755).
Now I know that I can just modify the patch's file index but I wo...
2
Solved
I have a reason¹ to create my git commits as patch files using git-format-patch with the --no-prefix option.
This option changes the patch output to not add the git-diff-specific prefixes a/ / b/ ...
Variole asked 3/1, 2019 at 13:3
6
I work on WordPress based project and I want to patch my project at each new release version of WP. For this, I want generate a patch between two commits or tags.
For example, in my repo /www/WP I ...
5
Solved
I am on windows.
For various reasons we have multiple git instances of different svn branches.
Many times I want to fix an issue in repository A, generate a patch, and apply it to repository B....
2
Solved
I have modified a file (or some files) in my directory, and I've used git add to stage some of the changes lines from the file, but not all the changed line.
I can use git diff --staged my-file to ...
2
Solved
This question is about git apply
Is there a way to distinguish between: it failed because...
... the patch is already applied
... the source code is really different
The directory i work in is...
1
Solved
I would like to know, which files would be written when applying a .patch file with git apply.
Is there a way to apply a .patch file in git with a dry run?
1
I needed to edit a messy commit commit that only changed a word in a few subsequent rows, keeping some of those changes and removing others.
The changes were easy to see in git diff --word-diff, an...
1
git mergetool is wonderful (in my case, I use kdiff3). However, it is not possible to use it to resolve conflicts from git am or git apply (or even with patch command). Indeed, mergetool need 3 fil...
2
Assuming a patch was created from a specific commit in the past, and no longer applies to HEAD.
How can I find either the first or better the last commit in the history of HEAD, where this patch a...
Era asked 28/5, 2014 at 5:19
2
Solved
Mainly, this question is specific to git with Magento 2. I have a working Magento 2 project and I have installed an extension using github repo - https://github.com/Adyen/adyen-magento2.
In my cu...
3
Solved
I have this patch file, it contains a bunch of modifications that I'd like to apply to a git branch. But I don't want to make one unique commit with all those modifications, instead I'd like to spl...
3
Solved
I'm trying to apply a patch to a file using git apply. The overall patch failed, so I used git apply --reject.
Inspecting the generated .rej file showed me what's wrong, now I fixed the problem i...
1
Solved
I have always used diff -b to make patches even when working on a git repo.
What is the difference between the two, does git diff / git format-patch also internally makes use of the linux/unix di...
1
© 2022 - 2025 — McMap. All rights reserved.