To remove the binary dependency of git we could replace it with jgit a java implementation of git. See https://www.eclipse.org/jgit/