git: fix gitPatch and some cleaning