有人可以帮我解决以下问题吗:
我从我的教授 Git url 克隆了数据,并尝试设置我的私人帐户有上游主机并将代码推送到我的私人存储库(https://github.com/accountid/reponame ')。
当我git checkout -b branchname
,它在我的教授回购而不是在我的帐户中创建一个新分支时,我想在我的私人回购中创建一个主人。
但我收到以下错误:
[rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/accountid/reponame'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
如何推送到我的私有存储库?