J
J
Jurgen22332017-10-06 12:17:27
git
Jurgen2233, 2017-10-06 12:17:27

Gitlab, why is the project not being pulled?

Good afternoon, there is a gitlab server, there is one project, the customer assures that he has given all the rights. Through the web, the muzzle manages to create a branch, add a commit, push it all.
[email protected] MINGW64 /tmp/13
$ git clone gitlab.domen.ru/web/domen.git
Cloning into 'domen'...
warning: You appear to have cloned an empty repository.
[email protected] MINGW64 /tmp/13
$ cd domen/
[email protected] MINGW64 /tmp/13/domen(master)
$ touch README.md
[email protected] MINGW64 /tmp/13/domen(master)
$ git add README.md
[email protected] MINGW64 /tmp/13/domen(master)
$ git commit -m "add README"
[master (root-commit) 9c69030] add README
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 README.md
[email protected] MINGW64 /tmp/13/domen(master)
$ git push -u origin master
error: Cannot access URL gitlab.domen.ru/web/domen.git/, return code 22
fatal : git-http-push failed
error: failed to push some refs to ' gitlab.domen.ru/web/domen.git '
[email protected] MINGW64 /tmp/13/domen(master)
$ git push origin master
error: Cannot access URL gitlab.domen.ru/web/domen.git/, return code 22
fatal: git-http-push failed
error: failed to push some refs to ' gitlab.domen.ru/web/domen.git '
I also tried it differently
[email protected] MINGW64 /tmp/13/1
$ git init
Initialized empty Git repository in C:/TEMP/13/1/.git/
[email protected] MINGW64 /tmp/13/1 (master)
$ git remote add origin gitlab.domen.ru/web/domen.git
[email protected] MINGW64 /tmp/13/1 (master)
$ git add .
[email protected] MINGW64 /tmp/13/1 (master)
$ git commit -m "Initial commit"
On branch master
Initial commit
nothing to commit
[email protected] MINGW64 /tmp/13/1 (master)
$ git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to ' gitlab.domen.ru/web/domen.git '
Which one of us is stupid, me or the one who gave me access?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kir aka Dober, 2017-10-07
@dobergroup

Did you add your SSH key through the web interface?
And yes, pushing an empty project in current versions should not work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question