简体   繁体   中英

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. 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. 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' .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM