V
V
Vann Damm2020-04-17 11:53:49
git
Vann Damm, 2020-04-17 11:53:49

How to link local and remote repositories?

I have two githubs, on the 2nd I created an empty repo in which I want to push the project. I did this: I
changed the user locally
git config user.name
git config [email protected]
///////////////// ////
git init
///////////////////
git add -A
////////////////////
git commit
///////////////////
git remote add origin "the repo I created"
///////////////////
git push - u origin master
Error:
remote: Permission to Benjamin-Button/toDoList.git denied to artsiomLegat.
fatal: unable to access ' https://github.com/Benjamin-Button/toDoList.git/ ': The requested URL returned error: 403

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vann Damm, 2020-04-27
@effect_tw

The problem was that the transfer protocol had to be changed to ssh, and the default was https, added a key to the ssh repo and it all worked. I don't know why..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question