码迷,mamicode.com
首页 > 系统相关 > 详细

Linux git管理项目遇到的问题

时间:2020-06-24 15:41:37      阅读:129      评论:0      收藏:0      [点我收藏+]

标签:解决   linu   include   file   ali   tin   ini   raise   ecif   

Linux git管理项目遇到的问题

	ImportError: Failed to initialize: Bad git executable.
The git executable must be specified in one of the following ways:
	- be included in your $PATH
	- be set via $GIT_PYTHON_GIT_EXECUTABLE
	- explicitly set via git.refresh()

All git commands will error until this is rectified.

This initial warning can be silenced or aggravated in the future by setting the
$GIT_PYTHON_REFRESH environment variable. Use one of the following values:
	- quiet|q|silence|s|none|n|0: for no warning or exception
	- warn|w|warning|1: for a printed warning
	- error|e|raise|r|2: for a raised exception

解决办法

vim /etc/profile

添加 :export GIT_PYTHON_REFRESH=quiet

wq 保存

source /etc/profile

Linux git管理项目遇到的问题

标签:解决   linu   include   file   ali   tin   ini   raise   ecif   

原文地址:https://www.cnblogs.com/daviddd/p/13187535.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!