Git push -u origin master command shows error

Asked

Viewed 42 times

0

Settings:

git config --global user.name "keilacardoso"
git config --global user.email "[email protected]"

Adding origin:

git remote add origin [email protected]:https://github.com/keilacardoso/Aulas-de-CSharp

files already added and commited

Running git push:

git push -u origin master

Error presented:

fatal: [email protected] 'https' is not supported

Can someone help me?

1 answer

0

According to the documentação, it is only possible to do two types of operations.

You can push only two URL address types:

  • A HTTPS URL such as https://github.com/user/repo.git
  • An SSH URL, such as [email protected]:user/repo.git

In your case this address got a mix.

To solve this problem you will need to do the procedure to add a remote repository again.

For me the mistake is on this line:

git remote add origin [email protected]:https://github.com/keilacardoso/Aulas-de-CSharp
  • 1

    I got it, I got it. I used the SSH URL and now it worked. Thank you so much

Browser other questions tagged

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