No refs in common and none specified; doing nothing

后端 未结 4 1236
别跟我提以往
别跟我提以往 2021-01-30 15:47

I had a local git project that I wanted to add to gitolite. Apparently this is hard so I abandoned the idea. I created a new gitolite repo by adding it to gitolite-admin/conf/gi

相关标签:
4条回答
  • 2021-01-30 16:23

    No "main" exists yet on the remote (origin) repository.

    git push origin main
    

    After this first push you can use the simpler

    git push
    

    Edit: With the recent trends my answer has been update to replace "master" with "main"

    0 讨论(0)
  • 2021-01-30 16:23

    If you're using git to mirror then use this :

    git config remote.backup.mirror true
    
    0 讨论(0)
  • 2021-01-30 16:26

    your master branch might be upstream and needs to be unset On branch master

    Your branch is based on 'origin/master', but the upstream is gone. (use git branch --unset-upstream to fix)

    0 讨论(0)
  • 2021-01-30 16:34

    Your local and remote repositories do not share the same history, since you recreated the repo. Therefore, Git won't let you push this content.

    If you are not afraid of losing the content that is on the remote repository, you can force push : git push -f.

    0 讨论(0)
提交回复
热议问题