尽管提交已更改为HEAD,但我仍尝试推送回购邮件
(base) apples-MacBook-Pro:Trying to clone notionso note taking app with django and reac apple$ git branch
* (HEAD detached at 7da824b)
master
这就是我在(HEAD detached at 7da824b)
而不是master
中提交我的情况的情况
(base) apples-MacBook-Pro:Trying to clone notionso note taking app with django and reac apple$ git push origin development
error: src refspec development does not match any
error: failed to push some refs to 'https://github.com/aliplutus/Trying-to-clone-notionso-note-taking-app-with-django-and-reac.git'
(base) apples-MacBook-Pro:Trying to clone notionso note taking app with django and reac apple$ git push -u origin master
remote: Repository not found.
fatal: repository 'https://github.com/aliplutus/Trying-to-clone-notionso-note-taking-app-with-django-and-reac.git/' not found
(base) apples-MacBook-Pro:Trying to clone notionso note taking app with django and reac apple$ git push -u origin development
error: src refspec development does not match any
error: failed to push some refs to 'https://github.com/aliplutus/Trying-to-clone-notionso-note-taking-app-with-django-and-reac.git'
(base) apples-MacBook-Pro:Trying to clone notionso note taking app with django and reac apple$
这些是我尝试过但遇到错误的方法,Repository not found
error: src refspec development does not match any
error: failed to push some refs to 'https://github.com/aliplutus/Trying-to-clone-notionso-note-taking-app-with-django-and-reac.git'
我吓坏了git push -u origin master
和git push -u origin head
和git push -u origin HEAD
和git push -u origin development
答案 0 :(得分:1)
关闭,您需要指定目的地
git push origin HEAD:master