假设工作区所在目录为/d/workspace/helloworld 那么可以在其它目录执行: GIT_DIR=/d/workspace/helloworld/.git git pull 其它git命令也可以用类似的方式来指定目录