You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using patch command to apply patches when Git indexes don't match #8
I just discovered that I can run patch -p1 <patch.file> to apply diffs and seems like it's less strict than git apply. Also there's diff command which generates diffs just like git diff. I suggest (to myself) to investigate both commands (diff and patch) and see how they compare to Git's diff and apply. If it's just diff to create the project and then just patch to apply it without any additional steps like with Git, I'll switch to them.
Activity
frixaco commentedon Sep 1, 2022
Git throws
No valid patches in input (allow with "--allow-empty")for empty diffs