“git push” failed: “You did not specify any refspecs to push”

前端 未结 4 708
长发绾君心
长发绾君心 2021-01-15 09:06

I set up a git project on projectlocker to push my git files to. Then I went into the directory where I had initialized a git project and staged my files. And finally I trie

4条回答
  •  一整个雨季
    2021-01-15 09:44

    This is the real error. You don't have read access to the repository?

    ERROR:gitosis.serve.main:Repository read access denied
    

    The rest are just warnings. If you want to get rid of the warnings, do this:

    git push git-smichaels@free5.projectlocker.com:helloworld.git [branchname]
    

    If you want Git to push the current branch when [branchname] is not specified without warning, do this:

    git config push.default current
    

提交回复
热议问题