m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/git.md
diff options
context:
space:
mode:
Diffstat (limited to 'git.md')
-rw-r--r--git.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.md b/git.md
index c8582af..c8ae6ae 100644
--- a/git.md
+++ b/git.md
@@ -16,3 +16,8 @@
git checkout <some commit a while ago>
git bisect old
git bisect run <command that returns 1 on old, 0 on new>
+
+## Patches
+
+ git diff > change.patch
+ patch -p1 < change.patch # -p1 to remove the a/ and b/ from filepaths