Git Error | GitHub Error: failed to push some refs to '[REPO URL]'

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 388

  • @kingbrianmendes
    @kingbrianmendes 3 ปีที่แล้ว +51

    You are the only one that brought the solution for this problem, clearly and direct, but most important of the "magic commands", you gave us the logical explanation about the "Why" this error occurs. To me, it's like math, where knowing the why to do the calculation matter more than knowing how to reproduce the calculation formula. Thank you very much, bro!

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว +3

      I'm super happy that this was helpful to you!

    • @chukwudiudennaka7521
      @chukwudiudennaka7521 3 ปีที่แล้ว +1

      I swear you are magnificent i have been dealing with this error tried all the videos nothing worked until i saw yours sincerely you are God sent

    • @vinpanesar8467
      @vinpanesar8467 2 ปีที่แล้ว

      @@SoloCoder same here, took me 2 days to finally come across your video and figure it out.

  • @Stevengdev
    @Stevengdev 2 ปีที่แล้ว +15

    WOW!!!! Even after 80% on taking entire GIT course I couldn't figure this out. Your explanation was so clear that now I think I know why this happened, but you literally took some stress off my shoulders right now because I was able to push! Thank you!

  • @sanjibdey01
    @sanjibdey01 3 ปีที่แล้ว +6

    Started out with Git+GitHub this morning, and was struggling with this error.
    Thanks for being the saviour.

  • @amanikanezamulume8337
    @amanikanezamulume8337 2 ปีที่แล้ว +2

    THank bro.
    Whenever I'm in coding mode happen to come accross such error I always come back to this tutorial just to be sure...!

    • @SoloCoder
      @SoloCoder  2 ปีที่แล้ว

      Glad to hear that

  • @Technostatic
    @Technostatic 3 ปีที่แล้ว +4

    Was stressing out over this exact problem for an assignment I'm working on, this helped a lot, definitely sharing it to other classmates if they run into the same issue!

  • @keydagreat1
    @keydagreat1 ปีที่แล้ว +1

    You saved me from quitting Git Thank you!!

  • @EvarlvPhotography
    @EvarlvPhotography 8 หลายเดือนก่อน

    After an Hour of trying to figure this out and then Boom , I find you! Thank you!!

  • @shashankkr1008
    @shashankkr1008 3 ปีที่แล้ว +11

    Thanks so much man, I was so frustrated with this error and you not only made it easy and also explained it why this was occurring

  • @oyiohachinedu5738
    @oyiohachinedu5738 ปีที่แล้ว

    I have been looking for this solution for days to no avail. You are the only one that solved it direct. Thank you.

  • @Alton_Roundtree
    @Alton_Roundtree 10 หลายเดือนก่อน

    I'd hug you. Man i was stuck for a day trying to find a answer to this problem
    thanks

  • @saumyabansal2710
    @saumyabansal2710 ปีที่แล้ว

    I can't thank you enough man ....this was getting so tough for me to push my work in my git repositories and I spent number of days is solving this issue then I found your video luckily.....Thankkkk youuu sooo muchhh

  • @bibekrawat2284
    @bibekrawat2284 3 ปีที่แล้ว +2

    Thank you so much, i am facing this problem since last month but i am not able to find perfect solutions.
    Thank's a lot man...

  • @jonasborges780
    @jonasborges780 ปีที่แล้ว +2

    By far, this is the best explanation EVER. Thank you so much, commander. One more subscriber!

    • @SoloCoder
      @SoloCoder  ปีที่แล้ว +1

      much love to you Jonas! ❤

    • @BetelgeuseX800
      @BetelgeuseX800 ปีที่แล้ว

      One more thanks.

  • @meysamkhansari3151
    @meysamkhansari3151 2 ปีที่แล้ว +1

    You are AMAZING Aderson.
    I am proud to be one of your students.
    Hope to see you soon again MR.ADERSON 🥰😍

  • @roland4362
    @roland4362 7 หลายเดือนก่อน

    After hours of looking for solution of this problem I found your short and clearly video. Thank you very much!!💖💖💖💖

  • @codeAlongwith
    @codeAlongwith 3 หลายเดือนก่อน

    What a nightmare until I found your video!

  • @rahulkumar-wz9jc
    @rahulkumar-wz9jc 7 หลายเดือนก่อน

    literally wow what a explaination and thank you i was figuring it out for 2 hours why it is not working,grateful

  • @corneliusjermainehightower7539
    @corneliusjermainehightower7539 3 ปีที่แล้ว +3

    Thank you for this video it helped me understand why I was wrong and how to fix it as well as the difference in adding the readme file at the start of the repo or after the repo is created.

  • @yyndsai
    @yyndsai 3 ปีที่แล้ว +2

    even this is giving an error, please tell me what can I do
    git pull --rebase origin master
    fatal: couldn't find remote ref master

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว +1

      maybe you don't have the "origin" set yet - try to set the origin - stackoverflow.com/questions/42830557/git-remote-add-origin-vs-remote-set-url-origin

    • @yyndsai
      @yyndsai 3 ปีที่แล้ว +1

      @@SoloCoder thanks, I understood git push -u origin master worked

  • @zezn6007
    @zezn6007 2 หลายเดือนก่อน

    damn i was stressing. I had deadline in 2 hours. Thank you king

  • @LeandroGazoni
    @LeandroGazoni 3 ปีที่แล้ว +1

    thanks a lot ! You saved my life. Damn rebase,
    I'd forgotten about him.

  • @joabecoelho
    @joabecoelho 2 ปีที่แล้ว +1

    Iam from Brazil and you speak very nice englesh!

  • @phunguyen-bh6pv
    @phunguyen-bh6pv 8 หลายเดือนก่อน

    Ive been finding the solve for this problem for 1 month on internet. Thank you for give me a chance to see this video

  • @manishprabhakaran1561
    @manishprabhakaran1561 3 ปีที่แล้ว +2

    Thank you so much.....
    It's really helped me to understand the problem. I have made manual changes in my GitHub repo, and that didn't sync with the local one. Thanks once again for clearing telling the problem. ❤️

  • @alfiartya23
    @alfiartya23 2 ปีที่แล้ว +2

    This is what exactly that I've been looking for!! Thank you for this explanation about solve the problem haha. I'm gonna save this to my playlist for later. THANKS AGAINNN!

    • @SoloCoder
      @SoloCoder  2 ปีที่แล้ว +1

      Glad it was helpful Alfi!

  • @hypebyte8057
    @hypebyte8057 2 ปีที่แล้ว

    Very good video, the only solution that actually worked for me. Even Github's own solution was not working.

  • @nimeshtank310
    @nimeshtank310 3 ปีที่แล้ว +1

    What if i have large older repo having so many stufs in there?

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว

      With this you won't lose anything

    • @nimeshtank310
      @nimeshtank310 3 ปีที่แล้ว

      @@SoloCoder ok thnx for this video.

  • @pabloes7108
    @pabloes7108 ปีที่แล้ว

    This was the problem i had and was not solved just with a git pull but finally found this video with the git pull --rebase command thanks sir.

  • @athervpatil1596
    @athervpatil1596 3 ปีที่แล้ว

    Been bugged by this error for last 3 days and didnt bother to solve it. It was too much today, You saved my ass

  • @pawanlive
    @pawanlive 2 ปีที่แล้ว +1

    Thanks a ton! After hours of searching got fixed 👍

  • @soulforthekindheart3766
    @soulforthekindheart3766 2 ปีที่แล้ว

    you are a lifesaver needed to turn in school work last minute

  • @deboragrano2426
    @deboragrano2426 ปีที่แล้ว +1

    Thank you tho, you solved my doubts today and my problem as well, you are a hero without a cape!!!!

  • @yashaswinin5982
    @yashaswinin5982 ปีที่แล้ว

    Thank you so much sir, literally I got irritated by this error, but your video
    helped me a lot, the solution was very clear and direct Thank you so much...

  • @marcuspaulooliveira946
    @marcuspaulooliveira946 2 ปีที่แล้ว

    Thank you so much! I loved your English, it's easy and clear for Brazilians to understand!

  • @BlazeYTT
    @BlazeYTT 2 ปีที่แล้ว

    Updating an unborn branch with changes added to the index. --This is the message im getting while puling

  • @dhruvpal8005
    @dhruvpal8005 5 หลายเดือนก่อน

    thank u so much, you not only solved the issue but also explained it very well 🙂

  • @oluwadipegodwin9304
    @oluwadipegodwin9304 3 ปีที่แล้ว +2

    Sorry please, this is the error I see when try to push my repository:
    Enumerating objects:46, done.
    Counting objects: 100%
    ....
    .....
    .....
    error: RPC failed; curl 55 Send failure: Connection was aborted
    Fatal: the remote end hung up unexpectedly.
    Thank you

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว

      Sorry that I don't have a solution but from what I found this seems to be related to low internet connection speeds

  • @jy777777
    @jy777777 2 ปีที่แล้ว +1

    Thank you so much! : ) I just have one question - how can I rebase and push certain file in the certain folder inside of the certain repository?

  • @ericzimmerman4804
    @ericzimmerman4804 2 ปีที่แล้ว

    thanks so much bro. I was stuck on that, and couldn't commit and push school work. Well done the explanation

  • @hafsahachim4194
    @hafsahachim4194 ปีที่แล้ว

    i can't thank you enough, you're such a life savior, thank you soo freaking much

  • @SergioSanchez-zw6mv
    @SergioSanchez-zw6mv 2 ปีที่แล้ว +1

    Bro, you saved me. All the love for you!

  • @monkyout
    @monkyout 3 ปีที่แล้ว +2

    Not all heroes wear capes.

  • @GhOsT-st7ch
    @GhOsT-st7ch 2 ปีที่แล้ว

    LEGEND! thank you so much git is so confusing just started learning it

  • @mohammadshaikneelufar9369
    @mohammadshaikneelufar9369 4 ปีที่แล้ว +1

    I'm trying to push the code. When I give "git push -u origin master" it gives a pop up github form when I give my crt username and password also code is not pushed. It is showing
    Login failed ,
    remote:invalid username or password

    • @mohammadshaikneelufar9369
      @mohammadshaikneelufar9369 4 ปีที่แล้ว

      How to solve it

    • @SoloCoder
      @SoloCoder  4 ปีที่แล้ว +1

      @@mohammadshaikneelufar9369 The error message seems to tell it all. Are you sure you are entering the correct name/pass? Don't copy/paste, type in

    • @mohammadshaikneelufar9369
      @mohammadshaikneelufar9369 4 ปีที่แล้ว

      @@SoloCoder I typed it but same error when I login my github account in chrome with same credentials it is working , but don't y when I'm trying to push the code its gives a pop up login form when I enter same credentials it is failed. Can you plz help me sir

    • @SoloCoder
      @SoloCoder  4 ปีที่แล้ว +1

      @@mohammadshaikneelufar9369 reach out to me via email and we can look at this together - aderson at solocoder dot com

    • @bheemareddy2129
      @bheemareddy2129 4 ปีที่แล้ว +1

      @@mohammadshaikneelufar9369 go to credential manager in ur system then remove the github credential after that retry to push then it well ask login information give it ...

  • @janneheguedusch5717
    @janneheguedusch5717 2 ปีที่แล้ว

    thank u so much! I've been trying to solve this for a long time and now I got it

  • @fazanfazanovski2712
    @fazanfazanovski2712 2 ปีที่แล้ว

    Finally solved my problem with git. Thank you very much!

  • @samiRediAmaniTekeshAlazar
    @samiRediAmaniTekeshAlazar 3 ปีที่แล้ว

    omg! thank yo very much for the video it took me hrs trying but ur 3min video fixe it all . thanks a lot from Ethiopia!

  • @addisuelectrical1376
    @addisuelectrical1376 5 หลายเดือนก่อน

    wow. you did it. thank you i tried a couple of times but i can't fix it. keep soaring

  • @moizansari9862
    @moizansari9862 ปีที่แล้ว

    My problem got solved after watching this video ❤

  • @emmanuelmenoji7853
    @emmanuelmenoji7853 ปีที่แล้ว

    Thanks Boss. This gave me sadness. I watched your video and I'm happy now. it worked. Thanks so much.

  • @vanessapinheiro9451
    @vanessapinheiro9451 2 ปีที่แล้ว +4

    GENIO MERECE O MUNDO, obrigada hehe

  • @sofianeffendi1780
    @sofianeffendi1780 3 ปีที่แล้ว

    it works , thanks , only half the video already works .. thank youu this will change my grade lol

  • @AsadUllah-hm5pt
    @AsadUllah-hm5pt 4 ปีที่แล้ว +2

    man ooo man, you are the hero we dont deserve but the one we need. P.s you solved the thing which took 2 days of random googling

    • @SoloCoder
      @SoloCoder  4 ปีที่แล้ว +1

      Glad it helped Asad! My thinking was that if it helped me, it could help someone else out there.

  • @7daysinSunnyJune
    @7daysinSunnyJune 3 ปีที่แล้ว +1

    This was great, Thanks! I had an additional issue, because of the recent renaming from Master to Main. But that resolved it.

  • @khangohan7288
    @khangohan7288 2 ปีที่แล้ว

    I was trying to push to github repository but due to large file lfs error come. So I delete the larg file which is not necessary due to which error was coming but still error is there of git LFS. Any suggestions

  • @osamaalsofy1163
    @osamaalsofy1163 ปีที่แล้ว

    Thanks a lot I appreciate it so much I have been struggling with that for almost a week and you made it as simple as possible
    Thanks a lot

  • @Ariaar356
    @Ariaar356 2 หลายเดือนก่อน

    i swear to god, this guy just saved me from anger because of my code full of red also this sht github pull push problem.
    Thannk you.

  • @dorout1
    @dorout1 3 ปีที่แล้ว

    When I try this nothing happens. Even with verbose. After I type out the command (git pull --rebase origin master) and hit enter a blank line pops up and nothing happens. Does anyone know how to resolve this?
    I've tried an uninstall and cleared the lingering .git files, but this problem still exists.

  • @shamantasristy4026
    @shamantasristy4026 3 ปีที่แล้ว +3

    Thank you soo much. In a way, it saved my life 😄

  • @tobechukwublessed4274
    @tobechukwublessed4274 2 ปีที่แล้ว

    This is just perfect.... thanks a million... Many will find this video really helpful

  • @nirajsheladiya8246
    @nirajsheladiya8246 2 ปีที่แล้ว +1

    Solved: git push -f origin master

  • @Bhanu_prasad_mohapatra
    @Bhanu_prasad_mohapatra 2 ปีที่แล้ว

    After entering the push command gitbash doesnot respond either an error or code. Everything is perfect. Whats the solution?

  • @머빵준
    @머빵준 3 ปีที่แล้ว

    i use this command --rebase
    and i sucessfully uploaded my files.
    but it uploaded including other files what i uploaded to another repository
    whats this?

  • @matheusriolo9361
    @matheusriolo9361 2 ปีที่แล้ว +1

    are you brazilian? if so would you be able to help me?

    • @SoloCoder
      @SoloCoder  2 ปีที่แล้ว

      Yes, how can I help you?

  • @BogartMisterFahrenheit
    @BogartMisterFahrenheit 2 ปีที่แล้ว +1

    Thank you so much for helping me with this problem you've been a lifesaver

  • @thuyvuong9874
    @thuyvuong9874 3 ปีที่แล้ว

    I am still getting that error even after checking the git log and seeing those two files. I run the push command and it still gives me the error. I am not sure what I am doing wrong.

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว

      I would try to clone the repo again and go through the steps. I haven't seen this process failing before

  • @fishmage5828
    @fishmage5828 ปีที่แล้ว

    Do I have to do the same steps every time I want to push the code?

  • @gislainedelaet9350
    @gislainedelaet9350 ปีที่แล้ว

    I am having a persistent issue when I try to push from netbeans to GitHub. It says non authorized.. I tried getting my token and everything but still having same issue. Can you help

  • @nayangupta9467
    @nayangupta9467 ปีที่แล้ว +1

    Good sir!

  • @devpaco7959
    @devpaco7959 2 ปีที่แล้ว

    Hi what do you type after git log so you can type in terminal

  • @BieeLL_
    @BieeLL_ 4 หลายเดือนก่อน

    i literally love you so much my brother, thanks

  • @saitejalabba
    @saitejalabba 3 ปีที่แล้ว

    very well explained sir you solved my most precious problem

  • @ronaldzion7097
    @ronaldzion7097 2 ปีที่แล้ว +1

    muito obrigado pelo video, resolvi meu problema com seu video.

  • @MajaLundDalgaard
    @MajaLundDalgaard 10 หลายเดือนก่อน

    Finally the solution to my problem - thanks!!!

  • @princeahmad
    @princeahmad 3 ปีที่แล้ว

    I got this same problem, but it's yet to be solved, error: cannot lock ref 'refs/remotes/origin/master': unable to resolve reference 'refs/remotes/origin/master': reference broken

  • @amalayakin4411
    @amalayakin4411 2 ปีที่แล้ว

    "error: src refspec master does not match any" bro this can't be solved what should i do?

  • @faryaltahseen7197
    @faryaltahseen7197 ปีที่แล้ว

    sir please help ...fatal: Out of memory, malloc failed (tried to allocate 1874919423 bytes)
    error: failed to push some refs to [repo]... how can i fix this error........please help

  • @divyatweety4648
    @divyatweety4648 2 ปีที่แล้ว

    That was really helpful..👏🏻great job

  • @romanbustamante5438
    @romanbustamante5438 2 ปีที่แล้ว +1

    this really solved my problem, thanks man

  • @johnny2598
    @johnny2598 3 ปีที่แล้ว +1

    git push -u origin master - what does -u stand for ?

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว

      Good question Johnny! It means up stream and the local branch is linked with the remote branch automatically.

    • @johnny2598
      @johnny2598 3 ปีที่แล้ว +1

      @@SoloCoder Thank you very much. Where i can find these abbreviations ? Had a hard time to find "-u". I subscribed and pressed the like button - thx !

    • @SoloCoder
      @SoloCoder  3 ปีที่แล้ว

      @@johnny2598 git-scm.com/docs/git-push

  • @SuryaMni
    @SuryaMni 3 ปีที่แล้ว

    in my github not showing code only showing class name or pakage in file but not showing code how to solv this

  • @keelecie
    @keelecie 3 ปีที่แล้ว +1

    You saved my ass from frustration!

  • @anshrusia1347
    @anshrusia1347 3 ปีที่แล้ว +1

    thank you so much sir you really solved a hell of a problem

  • @subratarudra2745
    @subratarudra2745 ปีที่แล้ว

    Thanks man ! The explanation was good.

  • @yeasinmiah7823
    @yeasinmiah7823 3 ปีที่แล้ว

    Many many many ..........................Thnx ,Dear Sir

  • @Low-key657
    @Low-key657 ปีที่แล้ว

    Please help I did everythong in the video but i still experience the same error

  • @pegatube
    @pegatube 2 ปีที่แล้ว

    Thank you! Your tutorial help me resolve my issue.

  • @vincecarlodecastro9829
    @vincecarlodecastro9829 6 หลายเดือนก่อน

    when i git push it always say everything-up-to-date
    pls help I cant git push

  • @jotaro9664
    @jotaro9664 2 ปีที่แล้ว +1

    this me coming here again after 1.5 year to correct the error 😂😂

  • @EnglishWithVaibhav
    @EnglishWithVaibhav 11 หลายเดือนก่อน

    My god
    Thank you so much from the bottom of my heart ❤❤❤❤❤

  • @bryan8881
    @bryan8881 ปีที่แล้ว

    Wow thank you so much i went thru all youtube to finally land on your video save me hours thank you very much

  • @ManishKumar-qn9sk
    @ManishKumar-qn9sk 3 ปีที่แล้ว

    Not all heroes wear capes

  • @spsujoypaul
    @spsujoypaul 2 ปีที่แล้ว

    Many many thanks... You save my project. Thanks again

  • @eduardo0939
    @eduardo0939 ปีที่แล้ว

    Omg a real solution, thank you so much bro.

  • @DevITProject
    @DevITProject ปีที่แล้ว +1

    thank you, very useful

  • @tsubimekdeinmansubimekdein3898
    @tsubimekdeinmansubimekdein3898 ปีที่แล้ว +1

    Thank yoi very very mich i will tell my brother to go to you video to give you one like more because you not only helped me and a lot of people, you also explained exacly why and how it works. Thank you very very much i learned more brcause if you.

  • @mahendrabishnoi716
    @mahendrabishnoi716 2 ปีที่แล้ว +1

    Thanks You So Much 💖💖

  • @ryiad2010
    @ryiad2010 3 ปีที่แล้ว +1

    thanks it is very helpful it solved my problem

  • @liu_rus
    @liu_rus ปีที่แล้ว +1

    thank you maaaan

  • @zapania_dances7646
    @zapania_dances7646 2 ปีที่แล้ว

    Thanks aseh, umakwana