[英]Why “Share Project on Github” (from IntelliJ) works, but “git push remote origin master” (from Terminal) does not?
我從 Github 分叉了一個項目 Gradle/Phyton 項目。
我將其修改為 Maven/Java。
我git remote set-url origin https://github.com/myRepo/myProject.git
我嘗試git push remote origin master
,並git push -u remote origin master
我得到了remote: Repository not found. fatal: repository 'https://github.com/myRepo/myProject.git/' not found
remote: Repository not found. fatal: repository 'https://github.com/myRepo/myProject.git/' not found
那沒起效。
有效的方法是從 IntelliJ > VCS > 導入版本控制 > 在 Github 上共享項目。
我相信這兩種方式都應該很好用......錯了!
為什么使用git push origin master
等終端命令無法實現 Github 上的共享項目?
這是否與 IntelliJ 持有 Github 憑證的事實有關?
我認為你沒有正確推動:
git push origin master
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.