當我使用推送視窗時

我點擊推送,突然出現一個彈出視窗。

當我使用彈出視窗中的按鈕成功登錄時

再次嘗試推送后,我仍然收到登錄彈出視窗

但是當我使用具有相同 github 用戶的終端并推送同一個存盤庫時,它可以作業。

因此,用戶似乎具有寫入權限。但是我應該怎么做才能再次使用推送視窗進行推送?
編輯
在事件日志中,有Repository not found錯誤,但是當我轉到 URL 時,我可以看到存盤庫。
09:39 Push failed
remote: Repository not found.
Authentication failed for 'https://github.com/..bla...git/'
uj5u.com熱心網友回復:
自從我的同事設定了teams我的帳戶連接的github 后,問題似乎就發生了。
最后,我的解決方案是將遠程 urlhttps變體更改為變ssh體。
git remote set-url origin [email protected]:[repo-owner-username]/[repo-name].git
現在使用推送視窗推送 PhpStorm 再次起作用。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/329789.html
上一篇:Github分支保護
下一篇:Haskell檢查空串列
