Use --workdir in git commands.