我正在尝试git push HEAD,但是它显示错误:remote:找不到存储库

时间:2020-08-06 18:37:06

标签: git github push

尽管提交已更改为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 mastergit push -u origin headgit push -u origin HEADgit push -u origin development

1 个答案:

答案 0 :(得分:1)

关闭,您需要指定目的地

git push origin HEAD:master