Understanding Wine
DLL and Service Development in Wine
»Wine HQ

Branch first. Develop second.


The command:

git format-patch -o out origin

is a good first bet for generating patches. For more control I find that:

git diff --patch-with-stat --summary origin <path to file> > out.patch

works well also.

Need to undo a set of changes:

git commit -a
git reset --hard HEAD^

Be careful with this. It really does undo all changes in the current repository.