Olá, Luis.
Ao executar o git push
obtive o seguinte resultado:
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
E quando eu executo git push --set-upstream origin main
, obtenho a seguinte resposta:
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 4 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 27.73 KiB | 2.77 MiB/s, done.
Total 6 (delta 0), reused 0 (delta 0)
To https://github.com/yapeansa/projeto-aluranewsletter.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
E finalmente ao executar git push origin main
, obtenho:
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/yapeansa/projeto-aluranewsletter.git'