Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

! [remote rejected] main -> main (failure) , failed to push some refs, when trying to push to the only branch in a repository [duplicate]

Tags:

git

git-push

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?

like image 826
PrezOfTheUnitedIdiots Avatar asked Aug 10 '21 15:08

PrezOfTheUnitedIdiots


2 Answers

Seems like github is down, check this website for github status update

like image 102
Zikou Avatar answered Jan 04 '23 22:01

Zikou


github is down currently they also mention on their twitter account

enter image description here

also you can check the status here : https://www.githubstatus.com/

like image 31
Haseeb hanif Avatar answered Jan 04 '23 22:01

Haseeb hanif