A
A
Alexander Sharomet2017-10-24 17:04:57
git
Alexander Sharomet, 2017-10-24 17:04:57

Why is git not uploading data to the server?

Hello.
I have a problem - when I try to upload data to github - git push origin master gives me an error.
remote: Permission to user/test.git denied to auser.
fatal: unable to access ' https://github.com/user/test.git/ ': The requested URL returned error: 403
i.e. I upload the data as "user" and it says to me that there is no access for "auser" why so happening?
I used to have different git settings with a different user. I reinstalled git and created a new user.
Commands I ran
git init
echo "# main" >> README.md
git config user.name "user"
git config user.email "[email protected]"
git add .
git remote add origin https://github.com/user/test.git/
git push origin master
... error.
It's strange that git didn't require you to enter a name, password.
I ran the same thing on another computer. only there when git was not installed - everything works. git asked for a password.
How can this be fixed.
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Gerasimov, 2017-10-24
@sharomet

cd ~/.ssh
cat id_rsa.pub
if there is a copy to a remote service, if not, generate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question