git-patch Questions
6
Solved
I'm creating a powershell script with the goal of going through several git branches, saving a patch of the working changes, switching to the trunk branch to pull remote commits, then switching bac...
Grim asked 13/6, 2022 at 18:36
29
Solved
I'm using Git on a new project that has two parallel -- but currently experimental -- development branches:
master: import of existing codebase plus a few modifications that I'm generally sure of
...
Cissie asked 16/1, 2009 at 4:55
13
Solved
I have a certain patch called my_pcc_branch.patch.
When I try to apply it, I get following message:
$ git apply --check my_pcc_branch.patch
warning: src/main/java/.../AbstractedPanel.java has typ...
1
I am running Git version 2.18.0.windows.1 and trying to manually edit hunks (this is my first time messing with this). I started by splitting a larger hunk and this is the first of the two hunks. I...
Unhitch asked 19/5, 2020 at 14:55
8
Solved
Say I have uncommitted changes in my working directory. How can I make a patch from those without having to create a commit?
3
Solved
I have two git repos that are forks of each other and I need to occasionally import commits from one to the other.
For example:
git-repo1 has this directory structure:
repo1/project1/src
repo1/...
3
Solved
I've got a repo on Bitbucket that only I have write access to.
Someone forked that repo, made changes and issued a pull request to my repo from the fork.
How can I get that pull request as a git ...
Rosemaryrosemond asked 18/10, 2013 at 18:39
3
Solved
How can I apply the patch from github?
I tried to compile minisat, but I came across two issues from the compilation with clang.
The first issue is solved in this github commit, it's forked from...
Messer asked 12/2, 2015 at 17:40
2
Solved
How can I generate patch for all commits in a given branch by knowing only the branch name?
This step is part of a complex workflow all of which is being automated. Hence requiring someone to manu...
Adigun asked 15/3, 2017 at 4:3
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
TL,DR;
I'm looking for a git command, bash script or npm method (script) to take all .patch files in a folder and run
git apply --ignore-whitespace patches/{filename}
What I've tried so far:
...
Effeminize asked 28/9, 2018 at 11:47
5
Solved
I'm editing some markdown files of a cloned remote repository, and wanted to test creating and applying patches from one branch to another. However, every time I make any change at all, I get the f...
Prefer asked 12/9, 2012 at 21:47
5
Solved
I have two repositories. In one, I make changes to file ./hello.test. I commit the changes and create a patch from that commit with git format-patch -1 HEAD. Now, I have a second repository that co...
2
Solved
I sometimes need to cherry-pick a tag with a certain fix into my branch, and used to do so via
git cherry-pick tags/myfix
This works, but cherry-picking takes an increasingly long time doing "in...
Edrei asked 31/8, 2018 at 17:4
1
Solved
I'm addind my change to a commit with git add -p, now I'd like to use the manual hunk edit mode.
I simply have this hunk:
# Manual hunk edit mode -- see bottom for a quick guide
@@ -46,6 +46,7 @@...
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
7
Solved
I have two repositories, one is the main repo for a library, and the other is a project using that library.
If I make a fix to the in the subservient project, I'd like an easy way to apply that pa...
Hellhound asked 31/5, 2009 at 11:32
2
Solved
I have recursively replaced many single word patterns in my code base. Before committing I need to check each for false replacements. It would help me a lot to have git add -p use the format of wha...
3
I want to move two files from one repository to another. The files were originally added as:
/src/init/Price.cs
/tests/init/PriceTests.cs
The two files were later renamed to:
/src/init/PriceV...
Polariscope asked 27/4, 2017 at 11:25
5
Solved
In git, I stash away my changes. Is it possible that I can create a patch with what I stash away? And then apply that patch in some other repository (my co-worker's)?
I know git format-patch -1, bu...
5
Solved
I am new to both Git and version control so I am trying to figure out what a patch is and how is it different from the rest of activities I do in Git?
When do I apply a patch? Does it happen every ...
Indication asked 26/11, 2011 at 15:51
5
Solved
I did some search online. I know that you can use format-patch after commit, but my situation is a little different.
I want to create a patch, similar to "dpk" in SVN, so I can send it out for cod...
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...
1
Solved
I am trying to create a git patch from multiple commits in my branch. However, I need to create it from arbitrary commits (they wont necessarily be in a range). In between the commits I want to cre...
Annabell asked 30/7, 2015 at 20:8
4
I have a patch-file.
I want to apply this patch to my code in git repository.
When I used subversion this process was quite simple: right click -> tortoise svn -> apply patch. It always works as ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.