I'm working on this discord bot, and I only got 1 branch in my repository, ain't needing more. I opened up my command line the way I have been for the past few weeks, and it said something about git --version
that was wrong but then it bypassed it or something and console started to work. Then I made a few tweaks to an existing file and simply did git status
to see if it was addable for a commit which it was. Then i did git add *
which worked, then git commit -m "fixed negative number error"
and then when I did git push origin main
which I have been doing for weeks, it said
Enumerating objects: 15, done.
Counting objects: 100% (15/15), done.
Delta compression using up to 4 threads
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 967 bytes | 483.00 KiB/s, done.
Total 11 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (8/8), completed with 4 local objects.
remote: fatal error in commit_refs
To https://github.com/andyforprez/exebot.git
! [remote rejected] main -> main (failure)
error: failed to push some refs to 'https://github.com/andyforprez/exebot.git'
And it didn't push that file to the repository, even though in VSCode the M
sign disappeared as if it did push.
Any suggestions?