git wrapper: add --git-dir=<path> and --bare options