m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/git.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2021-01-15 23:04:33 +0100
commit758da8fd3a73a70ef093e526207e904ecae60aa3 (patch)
tree27617b9c84b4fdb7982f18ae78645819ce70e97c /git.md
parent33921b69b45d4f41d18571416be2c255ce4ebddf (diff)
Update cheatsheets
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