Git unable to update URL base [closed]
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
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.
add a comment |
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
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 ofgit remote -v
?
– David Reed
Jan 19 at 13:58
Hi David, I am getting
– Brooks Johnson
Jan 19 at 17:33
add a comment |
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
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
salesforcedx git github
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 ofgit remote -v
?
– David Reed
Jan 19 at 13:58
Hi David, I am getting
– Brooks Johnson
Jan 19 at 17:33
add a comment |
Brooks, what is the output ofgit 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
add a comment |
1 Answer
1
active
oldest
votes
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
.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
.
add a comment |
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
.
add a comment |
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
.
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
.
answered Jan 19 at 17:41
David ReedDavid Reed
36.2k72154
36.2k72154
add a comment |
add a comment |
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