Add upstream url support.
User --workdir in git commands.