[英]Why “Share Project on Github” (from IntelliJ) works, but “git push remote origin master” (from Terminal) does not?
I forked a project Gradle/Phyton project from Github.我从 Github 分叉了一个项目 Gradle/Phyton 项目。
I modified it to be Maven/Java.我将其修改为 Maven/Java。
I git remote set-url origin https://github.com/myRepo/myProject.git
我git remote set-url origin https://github.com/myRepo/myProject.git
I tried to git push remote origin master
, and git push -u remote origin master
我尝试git push remote origin master
,并git push -u remote origin master
I got 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
remote: Repository not found. fatal: repository 'https://github.com/myRepo/myProject.git/' not found
It did not work.那没起效。
What worked was to do it from IntelliJ > VCS > Import into Version Control > Share Project On Github.有效的方法是从 IntelliJ > VCS > 导入版本控制 > 在 Github 上共享项目。
I believed both ways should work well... Wrong!我相信这两种方式都应该很好用......错了!
Why a Share Project on Github cannot be achieved using terminal commands like git push origin master
?为什么使用git push origin master
等终端命令无法实现 Github 上的共享项目?
Does it have to do with the fact that IntelliJ holds Github credentials?这是否与 IntelliJ 持有 Github 凭证的事实有关?
I think you are not pushing properly:我认为你没有正确推动:
git push origin master
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.