[Tool] SourceTree初始化GitFlow遇到错误(git command not found)的解决方案

[Tool] SourceTree初始化GitFlow遇到错误(git command not found)的解决方案

问题情景

使用SourceTree,可以方便开发人员快速的套用GitFlow开发流程。但是在安装完SourceTree、Clone Repository之后,准备透过SourceTree来初始化GitFlow相关设定时,某些开发环境里,会出现下列错误讯息:「git: command not found」。

问题情景01

解决方案

上网找了一下资料,针对「git: command not found」这个问题,可以发现是环境变量里,Path没有加入Git执行路径的参考:

要解决这个问题,开发人员只需要在Path里加入Git执行路径的参考:「C:\Program Files\Git\cmd」,并且重启SourceTree,就可以正常的使用SourceTree来初始化GitFlow。

解决方案01

posted @ 2015-10-06 16:21  Clark159  阅读(1455)  评论(0编辑  收藏  举报