【问题标题】:Git or Github pull, push errors solution in Android Studio Bumblebee | 2021.1.1Android Studio Bumblebee 中的Git 或Github pull、push 错误解决方案 | 天天要闻2021.1.1
【发布时间】:2022-06-22 12:05:55
【问题描述】:
git config credential.helper store

在设置 -> 版本控制 -> Git 中启用“使用凭据助手”。

在每个项目中,您都必须使用此终端代码进行配置。

*这是一个临时解决方案,直到找到与此问题相关的任何内容

【问题讨论】:

  • 我得到了这个问题的解决方案,答案是:git config --global credential.helper store

标签: android git android-studio gitlab android-studio-bumblebee


【解决方案1】:

错误:-“推送失败,调用失败来自服务器的文件意外结束”

在终端/CMD 中输入此命令

git config --local user.name 'your username'
git config --local user.password 'your password'
git config --global credential.helper store

解决方案:- 还要确保在设置 > VCS > Git 中选中“使用凭据帮助”。 Android Setting image

【讨论】:

    【解决方案2】:

    在每个项目中,您都必须使用此终端代码进行配置。

    如果您想一次性为每个项目配置它:

    git config --global credential.helper store
    

    请注意,Microsoft GCM (Git Credential Manager) 比“存储”(以纯文本形式存储凭据)更安全。
    你可以在 Windows/Linux/Mac 上install GCM(默认带有Git for Windows

    【讨论】:

    • 非常感谢您的回答 Mr.VonC​​pan>
    • @MubarakAnsari 不客气。
    • @MubarakAnsari 等等,这个答案没有被接受吗?它缺少什么?
    猜你喜欢
    • 2022-06-24
    • 1970-01-01
    • 2020-06-11
    • 1970-01-01
    • 2022-01-19
    • 2014-03-09
    • 1970-01-01
    • 1970-01-01
    • 2012-09-29
    相关资源
    最近更新 更多