首页 > 解决方案 > pythonanywhere 是否允许在免费帐户中安装其他 Git 版本?

问题描述

我正在尝试在 pythonanywhere 的 bash 控制台中运行此命令;

错误

文字版:

git config credential.helper 'cache --timeout=900'
fatal: not in a git repository

标签: gitpythonanywhere

解决方案


如果您想从任何地方执行它,请全局配置设置:

git config --global credential.helper 'cache --timeout=900'

这样,您就不会依赖于当前文件夹。
但这将适用于您的所有存储库。


推荐阅读