Git: Difference between revisions

From Extremely Corporate Wiki
Jump to navigation Jump to search
(Created page with "A Git is a stupid person. Alternatively, Git may refer to [https://git-scm.com/ the stupid content tracker].")
 
No edit summary
 
Line 1: Line 1:
A [[Git]] is a stupid person. Alternatively, [[Git]] may refer to [https://git-scm.com/ the stupid content tracker].
A [[Git]] is a stupid person. Alternatively, [[Git]] may refer to [https://git-scm.com/ the stupid content tracker].
==Tips==
When creating a [https://git-scm.com/docs/git-format-patch patch] from some commits, you might want to add the <code>-U0</code> flag to remove extra context that could cause the patch to be rejected when applied to a slightly different revision of the source code.
In my experience, I have been able to get a patch that would otherwise not apply to apply correctly by using this flag.

Latest revision as of 22:05, 29 December 2023

A Git is a stupid person. Alternatively, Git may refer to the stupid content tracker.

Tips

When creating a patch from some commits, you might want to add the -U0 flag to remove extra context that could cause the patch to be rejected when applied to a slightly different revision of the source code.

In my experience, I have been able to get a patch that would otherwise not apply to apply correctly by using this flag.