git push origin master is not working

Asked

Viewed 142 times

0

I’m doing the following flow:

git init
git add README.md
git commit -m "teste"
git branch -M main
git remote add origin https://github.com/Brininhoxd/teste.git
git push -u origin main

when I give the git push -u origin main He keeps carrying it forever and nothing happens, someone can help me

  • You are entering your Github username and password?

  • so, the problem is just this, it doesn’t show up the option to boss, it just sits there, like it’s doing some process, only it doesn’t end

  • you imported ssh key ?... can be loading by ssh key imported to your account.

1 answer

0

Bruno,

Try it this way:

substitute git push origin main for git push origin master

Browser other questions tagged

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