Linux git管理项目遇到的问题
Posted 阿浪阿浪
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于Linux git管理项目遇到的问题的主要内容,如果未能解决你的问题,请参考以下文章
git项目初次push提示error: failed to push some refs to https://gitee.com/xxxx/gittest.git’解决方案 --九五小庞(代码片段