try jgit which includes setting defaults with git config per jgit doc
1 file changed