Results 1 to 2 of 2
I could simply do: Code: $ git diff > patchfile.patch if I haven't setup [diff] external = extDiff I can temporary disable this external GUI diff tool. But just wondering ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-16-2011 #1
Create git patch for uncommitted changes?
$ git diff > patchfile.patch
I can temporary disable this external GUI diff tool. But just wondering ifCode:
$ git format-patch
- 09-20-2011 #2
I don't the way to do that..but why not commit the changes and take patch using "git format-patch -M -1" and then do "git reset --hard <previous-patch-commit-id>"