[英]Can't Upload File To Github Organization Repository
I have an organization on GitHub, and I am trying to upload the file on my local to the repository at the organizations on GitHub.我在 GitHub 上有一个组织,我正在尝试将我本地的文件上传到 GitHub 组织的存储库中。 First, I created a repository with the same name as on my local.
首先,我创建了一个与本地同名的存储库。 Second, I ran the
git remote add origin https://github.com/mutiaradakwahcom/referensi-copy.git
on git bash. Second, I ran the
git remote add origin https://github.com/mutiaradakwahcom/referensi-copy.git
on git bash. Third, I run the code git push -u origin main
on git bash, but the following error message appears: error: failed to push some refs to 'https://github.com/mutiaradakwahcom/reference-copy.git'
.第三,我在git bash上运行代码
git push -u origin main
,但是出现如下错误信息:error: failed to push some refs to 'https://github.com/mutiaradakwahcom/reference-copy.git'
://-github.commut.
I found a solution.我找到了解决方案。 It seems this is because I haven't changed the branch name on my git, so the branch names between my git and GitHub are different
这似乎是因为我没有更改我的 git 上的分支名称,所以我的 git 和 GitHub 之间的分支名称不同
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.