我正在尝试在pythonanywhere的bash控制台中运行此命令;
文本版本:
git config credential.helper 'cache --timeout=900' fatal: not in a git repository
如果要从任何地方执行它,请全局配置设置:
git config --global credential.helper 'cache --timeout=900'
这样,您不必依赖当前文件夹。但这将适用于all您的存储库。