-1
I gave one git status
in the repository and this appeared:
$ git status
On branch main
Your branch and 'origin/main' have diverged, and have 1 and 1 Different commits each, respectively. (use "git pull" to merge the remote branch into Yours)
Nothing to commit, Working Tree clean
I did as git indicated and gave a pull
, appearing the following message shortly afterwards:
$ git pull
Your Configuration specifies to merge with the ref 'refs/heads/main' from the remote, but no such ref was fetched.
Please clarify your problem or provide additional details in order to highlight exactly what you need. The way it’s written these days it’s hard to tell exactly what you’re asking.
–
I deleted the repository on Github and now I can’t push other repositories...
– Alisson Ribeiro
$ git push origin main To https://github.com/AlissonRibeiro31/basics_HTML_CSS_JS.git ! [Rejected] main -> main (fetch first) error: failed to push some refs to 'https://github.com/AlissonRibeiro31/basics_HTML_CSS_JS.git' hint: Updates Were Rejected because the remote contains work that you do hint: not have locally. This is usually caused by Another Repository pushing hint: to the same ref. You may want to first Integrate the remote changes hint: (e.g., 'git pull ...') before pushing Again. hint: See the 'Note about fast-forwards' in 'git push --help' for Details.
– Alisson Ribeiro