github git create a new repository

 

 

error: src refspec main does not match any.

git branch -M main
root@ubuntu:~/rtems-_app# git push -u origin main -f
error: src refspec main does not match any.
error: failed to push some refs to 'git@github.com:/rtems-_app.git'
root@ubuntu:~/rtems-_app# git branch -M main
root@ubuntu:~/rtems-_app# git push -u origin main
To github.com:3/rtems-_app.git
 ! [rejected]        main -> main (fetch first)
error: failed to push some refs to 'git@github.com:/rtems-_app.git'
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.
root@ubuntu:~/rtems-_app# 

 

posted on 2021-08-05 16:08  tycoon3  阅读(178)  评论(0)    收藏  举报

导航