永久设置 Linux 或 macOS:将 export GIT_PYTHON_REFRESH=quiet 添加到你的 shell 配置文件(如 .bashrc、.bash_profile、.zshrc 等)中,然后重新加载配置文件(如使用 source ~/.bashrc)。 Windows:将 set GIT_PYTHON_REFRESH=quiet 添加到你的系统环境变量中,或者在你的 Python 脚本中通过代码设置环境变量。 在Py...
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: ...