簡體   English   中英

Android Studio Bumblebee 中的Git 或Github pull、push 錯誤解決方案 | 天天要聞 2021.1.1

[英]Git or Github pull, push errors solution in Android Studio Bumblebee | 2021.1.1

git config credential.helper store

在設置 -> 版本控制 -> Git 中啟用“使用憑據助手”。

在每個項目中,您都必須使用此終端代碼進行配置。

*這是一個臨時解決方案,直到找到與此問題相關的任何內容

錯誤:-“推送失敗,調用失敗來自服務器的文件意外結束”

在終端/CMD 中輸入此命令

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

解決方案:- 還要確保在設置 > VCS > Git 中選中“使用憑據幫助”。 安卓設置圖片

在每個項目中,您都必須使用此終端代碼進行配置。

如果您想一次性為每個項目配置它:

git config --global credential.helper store

請注意,Microsoft GCM( Git Credential Manager )比“存儲”(以純文本形式存儲憑據)更安全。
您可以在 Windows/Linux/Mac 上安裝 GCM (它默認與Git for Windows一起提供)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM