Git unable to update URL base [closed]












1















Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github.



/Desktop/GloboHealth/globohealthDX$ git push origin master



fatal: unable to update url base from redirection:
asked for: https://github.com/bdJohnson72/GloboHealth/upload/info/refs?service=git-receive-pack
redirect: https://github.com/bdJohnson72/GloboHealth
`




The result of git remote -v is



origin  https://github.com/bdJohnson72/GloboHealth/upload (fetch)
origin https://github.com/bdJohnson72/GloboHealth/upload (push)
upstream https://github.com/bdJohnson72/GloboHealth.git (fetch)
upstream https://github.com/bdJohnson72/GloboHealth.git (push)


I can't figure out what is going on here. I followed the link. And it asks for a branch. But I have a master branch set up. Any help would be appreciated.










share|improve this question















closed as off-topic by Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina Jan 31 at 8:23


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Programming questions not specific to Salesforce are off-topic here, but can be asked on Stack Overflow." – Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • Brooks, what is the output of git remote -v?

    – David Reed
    Jan 19 at 13:58











  • Hi David, I am getting

    – Brooks Johnson
    Jan 19 at 17:33


















1















Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github.



/Desktop/GloboHealth/globohealthDX$ git push origin master



fatal: unable to update url base from redirection:
asked for: https://github.com/bdJohnson72/GloboHealth/upload/info/refs?service=git-receive-pack
redirect: https://github.com/bdJohnson72/GloboHealth
`




The result of git remote -v is



origin  https://github.com/bdJohnson72/GloboHealth/upload (fetch)
origin https://github.com/bdJohnson72/GloboHealth/upload (push)
upstream https://github.com/bdJohnson72/GloboHealth.git (fetch)
upstream https://github.com/bdJohnson72/GloboHealth.git (push)


I can't figure out what is going on here. I followed the link. And it asks for a branch. But I have a master branch set up. Any help would be appreciated.










share|improve this question















closed as off-topic by Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina Jan 31 at 8:23


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Programming questions not specific to Salesforce are off-topic here, but can be asked on Stack Overflow." – Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina

If this question can be reworded to fit the rules in the help center, please edit the question.

















  • Brooks, what is the output of git remote -v?

    – David Reed
    Jan 19 at 13:58











  • Hi David, I am getting

    – Brooks Johnson
    Jan 19 at 17:33
















1












1








1








Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github.



/Desktop/GloboHealth/globohealthDX$ git push origin master



fatal: unable to update url base from redirection:
asked for: https://github.com/bdJohnson72/GloboHealth/upload/info/refs?service=git-receive-pack
redirect: https://github.com/bdJohnson72/GloboHealth
`




The result of git remote -v is



origin  https://github.com/bdJohnson72/GloboHealth/upload (fetch)
origin https://github.com/bdJohnson72/GloboHealth/upload (push)
upstream https://github.com/bdJohnson72/GloboHealth.git (fetch)
upstream https://github.com/bdJohnson72/GloboHealth.git (push)


I can't figure out what is going on here. I followed the link. And it asks for a branch. But I have a master branch set up. Any help would be appreciated.










share|improve this question
















Trying to start learning DX. I have the project set up and downloaded a simple package from a demo org. But I get an error when I try to commit to Github.



/Desktop/GloboHealth/globohealthDX$ git push origin master



fatal: unable to update url base from redirection:
asked for: https://github.com/bdJohnson72/GloboHealth/upload/info/refs?service=git-receive-pack
redirect: https://github.com/bdJohnson72/GloboHealth
`




The result of git remote -v is



origin  https://github.com/bdJohnson72/GloboHealth/upload (fetch)
origin https://github.com/bdJohnson72/GloboHealth/upload (push)
upstream https://github.com/bdJohnson72/GloboHealth.git (fetch)
upstream https://github.com/bdJohnson72/GloboHealth.git (push)


I can't figure out what is going on here. I followed the link. And it asks for a branch. But I have a master branch set up. Any help would be appreciated.







salesforcedx git github






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 19 at 17:38









David Reed

36.2k72154




36.2k72154










asked Jan 19 at 13:55









Brooks JohnsonBrooks Johnson

1429




1429




closed as off-topic by Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina Jan 31 at 8:23


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Programming questions not specific to Salesforce are off-topic here, but can be asked on Stack Overflow." – Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina Jan 31 at 8:23


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Programming questions not specific to Salesforce are off-topic here, but can be asked on Stack Overflow." – Pranay Jaiswal, Himanshu, battery.cord, superfell, Markus Slabina

If this question can be reworded to fit the rules in the help center, please edit the question.













  • Brooks, what is the output of git remote -v?

    – David Reed
    Jan 19 at 13:58











  • Hi David, I am getting

    – Brooks Johnson
    Jan 19 at 17:33





















  • Brooks, what is the output of git remote -v?

    – David Reed
    Jan 19 at 13:58











  • Hi David, I am getting

    – Brooks Johnson
    Jan 19 at 17:33



















Brooks, what is the output of git remote -v?

– David Reed
Jan 19 at 13:58





Brooks, what is the output of git remote -v?

– David Reed
Jan 19 at 13:58













Hi David, I am getting

– Brooks Johnson
Jan 19 at 17:33







Hi David, I am getting

– Brooks Johnson
Jan 19 at 17:33












1 Answer
1






active

oldest

votes


















4














I'm not really sure how your repo got into this state, but you have two remotes (server repos to which you can push changes from your repo) configured, and one of them (upstream) has the wrong URL.



You don't need two remotes here because they're actually both pointing at the same repo, your bdJohnson72/GloboHealth repo on GitHub.



I would fix origin by doing



git remote set-url origin https://github.com/bdJohnson72/GloboHealth.git 


and then remove upstream by doing



git remote rm upstream


Then you should be able to push to origin.






share|improve this answer






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4














    I'm not really sure how your repo got into this state, but you have two remotes (server repos to which you can push changes from your repo) configured, and one of them (upstream) has the wrong URL.



    You don't need two remotes here because they're actually both pointing at the same repo, your bdJohnson72/GloboHealth repo on GitHub.



    I would fix origin by doing



    git remote set-url origin https://github.com/bdJohnson72/GloboHealth.git 


    and then remove upstream by doing



    git remote rm upstream


    Then you should be able to push to origin.






    share|improve this answer




























      4














      I'm not really sure how your repo got into this state, but you have two remotes (server repos to which you can push changes from your repo) configured, and one of them (upstream) has the wrong URL.



      You don't need two remotes here because they're actually both pointing at the same repo, your bdJohnson72/GloboHealth repo on GitHub.



      I would fix origin by doing



      git remote set-url origin https://github.com/bdJohnson72/GloboHealth.git 


      and then remove upstream by doing



      git remote rm upstream


      Then you should be able to push to origin.






      share|improve this answer


























        4












        4








        4







        I'm not really sure how your repo got into this state, but you have two remotes (server repos to which you can push changes from your repo) configured, and one of them (upstream) has the wrong URL.



        You don't need two remotes here because they're actually both pointing at the same repo, your bdJohnson72/GloboHealth repo on GitHub.



        I would fix origin by doing



        git remote set-url origin https://github.com/bdJohnson72/GloboHealth.git 


        and then remove upstream by doing



        git remote rm upstream


        Then you should be able to push to origin.






        share|improve this answer













        I'm not really sure how your repo got into this state, but you have two remotes (server repos to which you can push changes from your repo) configured, and one of them (upstream) has the wrong URL.



        You don't need two remotes here because they're actually both pointing at the same repo, your bdJohnson72/GloboHealth repo on GitHub.



        I would fix origin by doing



        git remote set-url origin https://github.com/bdJohnson72/GloboHealth.git 


        and then remove upstream by doing



        git remote rm upstream


        Then you should be able to push to origin.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 19 at 17:41









        David ReedDavid Reed

        36.2k72154




        36.2k72154















            Popular posts from this blog

            'app-layout' is not a known element: how to share Component with different Modules

            android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

            WPF add header to Image with URL pettitions [duplicate]