1. 程式人生 > >Pycharm提交到GitLab問題Can't connect to repository

Pycharm提交到GitLab問題Can't connect to repository

osi clas git wan har red con strong any

第一次提交,顯示創建了repositories,但是代碼push不上,之後我刪除了相應的repositories,再次提交,出現:Can‘t connect to repository from configured remote. You could want to check .git config.Do you want to proceed anyway?

解決辦法:關閉Pycharm,進入項目文件夾,查看隱藏文件,可以看到.git文件夾,進入後查看config文件,刪除[remote "origin"]以及所包含的url 和fetch共三行。重啟AS,並提交到git。

Pycharm提交到GitLab問題Can't connect to repository