I have been trying to create a repo to github through git, but I couldn't do it, these are the steps I did:
git init
git add .
git commit
git push
and this is the message I get:
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
when I use the command I get nothing:
git push --set-upstream origin main
another thing, sorry if it sounded stupid but I really want to understand, the first time I configured git on my PC it connected with github, but when I upgraded my OS even if I tried to configured it again I couldn't, I configured my username but it didn't appears on the git window