Linux git管理項目遇到的問題


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM