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

前端 未结 4 709
长发绾君心
长发绾君心 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:31

    Your real problem was buried in the warning message

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

    Make sure that you have the ability to access the repository

    0 讨论(0)
  • 2021-01-15 09:39

    Also, make sure to add yourself to the project from within your ProjectLocker account itself. Do this by clicking on "List Account Users" in the left pane, check that you are listed as one of the users (probably as admin?), and then click on "List Projects", select the project name (NOT the Edit link), and under the heading "Users in Project" you should see yourself listed. If you're not there, add your userid to the particular project you are trying to sync with, otherwise ... no go. Incidentally, this is also how you control who else has access to the project, i.e. read / write permissions.

    0 讨论(0)
  • 2021-01-15 09:41

    I'm with ProjectLocker. You can file a ticket in ProjectLocker Portal and we can look at your project and make sure there's not an issue on our end preventing you from accessing your repository.

    0 讨论(0)
  • 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
    
    0 讨论(0)
提交回复
热议问题