B
B
Bogdan Oliynik2018-11-28 16:18:39
git
Bogdan Oliynik, 2018-11-28 16:18:39

GIT: fatal: Couldn't find remote ref master. With the origin master pool, this is the error, what should I do?

I cloned the c gitlab repository, but when I want to spool the master branch, this error pops up. And if I create a new branch and want to push something, then it’s also an error, what could be the problem?
On pool:
$ git pull origin master
warning: redirecting to https://gitlab.com/anega/stud-ekr.git/
fatal: Couldn't find remote ref master
On push to develop:
$ git co -b develop
Switched to a new branch 'develop'
$ git push origin develop
warning: redirecting to https://gitlab.com/anega/stud-ekr.git/
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 235 bytes | 235.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab:
remote: A default branch (eg master) does not yet exist for anega/stud-ekr
remote: Ask a project Owner or Maintainer to create a default branch:
remote:
remote: https://gitlab.com/anega/stud-ekr/project_members
remote:
To https://gitlab.com/anega/stud-ekr
! [remote rejected] develop -> develop (pre-receive hook declined)
error: failed to push some refs to ' https://gitlab.com/anega/stud-ekr '

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2018-11-28
@RaiseUp69

give a link to a closed repository so that we can guess what branches are available there? this is for telepaths (who are all busy).
what checks there are on the developer are also not visible. maybe he's protected?!
but I'm inclined to think that the repository is empty and you just don't have the rights to push it there. (Ask a project Owner or Maintainer to create a default branch)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question