Skip to main content
1765 votes
13 answers
1.2m views

I want to create a patch for a specific commit hash, <rev>. I tried using git format-patch <rev>, but that generated a patch for each commit since the <rev> commit. Is there a way to ...
elle's user avatar
  • 17.7k
570 votes
15 answers
564k views

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 type ...
Glory to Russia's user avatar
453 votes
7 answers
597k views

I have two local git repositories, both pointing to the same remote repository. In one git repository, if I do git format-patch 1, how can I apply that patch to the other repository?
silverburgh's user avatar
  • 9,809
447 votes
5 answers
266k views

The situation: master is at X quickfix1 is at X + 2 commits Such that: o-o-X (master HEAD) \ q1a--q1b (quickfix1 HEAD) Then I started working on quickfix2, but by accident took quickfix1 ...
Alex Yarmula's user avatar
  • 10.7k
319 votes
8 answers
375k views

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 do ...
zatamine's user avatar
  • 3,888
306 votes
5 answers
156k views

How can my client apply patch created by git diff without git installed? I have tried to use patch command but it always asks file name to patch.
Andrey Kuznetsov's user avatar
275 votes
10 answers
193k views

I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by browsers. So, I want to know what the main difference between PATCH and PUT requests are, and when ...
user3276063's user avatar
  • 2,783
260 votes
4 answers
64k views

I've recently discovered git's patch option to the add command, and I must say it really is a fantastic feature. I also discovered that a large hunk could be split into smaller hunks by hitting the s ...
greg0ire's user avatar
  • 23.3k
245 votes
6 answers
257k views

I am looking for the command for creating a patch from the last commit made. My workflow sometimes looks like this: vi some.txt git add some.txt git commit -m "some change" Now I just want ...
claj's user avatar
  • 5,432
233 votes
4 answers
144k views

Both git am and git apply can be used to apply patches. It seems that git am automatically commits, whereas git apply only touches the files but doesn't create a commit. Is that the only difference?
Christoph's user avatar
  • 28.5k
192 votes
2 answers
100k views

I would like to get a single commit (let's call it ${SHA}) from GitHub via the web-interface. For example, something like: $ git clone http://github.com/foo/bar $ cd bar $ git format-patch -o .. ${...
umläute's user avatar
  • 32.2k
183 votes
8 answers
111k views

I've got eight commits on a branch that I'd like to email to some people who aren't git enlightened, yet. So far, everything I do either gives me 8 patch files, or starts giving me patch files for ...
skiphoppy's user avatar
  • 104k
175 votes
4 answers
501k views

Is it possible to mock a return value of a function called within another function I am trying to test? I would like the mocked method (which will be called in many methods I'm testing) to returned my ...
mdoc-2011's user avatar
  • 3,017
169 votes
8 answers
44k views

Say I get a patch created with git format-patch. The file is basically a unified diff with some metadata. If I open the file in Vim, I can see which lines have been modified, but I cannot see which ...
Adam Monsen's user avatar
  • 9,554
162 votes
6 answers
102k views

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 ...
mart1n's user avatar
  • 6,311

15 30 50 per page
1
2 3 4 5
189