3 ms·
Another frequent use I have, applying random diffs with git: git diff | pbcopy pbpaste | git apply
by lloeki 3y ago
Another frequent use I have, applying random diffs with git:
git diff | pbcopy
pbpaste | git apply
- js2 3y agoYou 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.
- verst 3y agoI 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 :)