When the new warehouse has not created any branches and the Developer role submits the code for the first time, the following exception is thrown.
remote: GitLab:
remote: A default branch (e.g. master) does not yet exist for galaxy/apache-jspf-project
remote: Ask a project Owner or Maintainer to create a default branch:
remote:
remote: http://192.168.8.9/galaxy/spf-project/-/project_members
remote:
error: failed to push some refs to 'http://192.168.8.9/galaxy/spf-project.git'
To http://192.168.8.9/galaxy/spf-project.git
! refs/heads/master:refs/heads/master [remote rejected] (pre-receive hook declined)
Done
If you do not have permission to create a default branch, there are two solutions:
1. Ask the administrator to push the code for the first time to create the master branch.
2. You can also change me to the role of Maintainer