←back to thread

2039 points Gadiguibou | 3 comments | | HN request time: 0.643s | source
1. lloeki ◴[] No.36493457[source]
Another frequent use I have, applying random diffs with git:

    git diff | pbcopy
    pbpaste | git apply
replies(1): >>36493493 #
2. js2 ◴[] No.36493493[source]
You can also use `git format-patch` and `git am` if you want to apply the same commit to multiple repos, a use-case I sometimes I have.
replies(1): >>36497014 #
3. verst ◴[] No.36497014[source]
I should use `git format-patch` instead of creating a mock draft PR (which I end up deleting) and modifying the URL to add `.patch` and then downloading the patch file haha. `git format-patch` would probably be faster :)