ported gerrit-git-prep.sh for windows