V
V
VN2021-03-10 11:21:29
git
VN, 2021-03-10 11:21:29

Why does git throw an error remote: Push to create is not enabled for users when creating a repository?

In WSL Ubuntu 20.04 I create a repository in GiTea

git remote add origin https://git.domain.com/user/app_name.git

I push it
git push -u origin master
Asks login/password, and the repository is created.

On Windows (which hosts WSL ), when I try to push a new repository, I get an error
remote: Push to create is not enabled for users.
fatal: unable to access 'https://git.domain.com/user/app_name.git/': The req
uested URL returned error: 403

login/password are correct because I am connecting to the same account

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Pershin, 2021-03-10
@Get-Web

in the vim terminal .gitconfig you need to change the url from https to ssh

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question