$ git push -u origin main remote: Repository not found. fatal: Repository 'https://github.com/fretagi/pirple-apple.git/' not found

Asked

Viewed 134 times

-1

I’m trying to push according to:

git remote add origin https://github.com/fretagi/pirple-projects-apple.git git branch -M main git push -u origin main

but he gives that mistake:

fatal: remote origin already exists.

so I did a search and asked me to run some commands, but without success:

inserir a descrição da imagem aqui

some hint on how to overcome this problem?

1 answer

0

I believe you have cloned a repository and now want to add to your github, anyway use the command git remote remove origin then add the desired repository git remote add origin https://github.com/fretagi/pirple-projects-apple.git

  • Hello, I was able to solve after a lot of research, I had to use the set url and then the whole path, and then it worked. Thank you very much for the tip.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.