Here's the line I fired:
git remote add Nakor git://github.com.nakor/CherryTomato.git
I made a mistake and the command should have been:
git remote add Nakor git://github.com/nakor/CherryTomato.git
When I try to run the second command, I get this error:
fatal: Remote Nakor already exists.
Which is understandable. How can I edit the endpoint the remote Nakor
is pointing to?
To delete a remote branch, you can't use the git branch command. Instead, use the git push command with --delete flag, followed by the name of the branch you want to delete. You also need to specify the remote name ( origin in this case) after git push .
From github help Removing a remote:
git remote -v
# View current remotes
origin https://github.com/OWNER/REPOSITORY.git (fetch)
origin https://github.com/OWNER/REPOSITORY.git (push)
destination https://github.com/FORKER/REPOSITORY.git (fetch)
destination https://github.com/FORKER/REPOSITORY.git (push)
git remote rm destination
# Remove remote
git remote -v
# Verify it's gone
origin https://github.com/OWNER/REPOSITORY.git (fetch)
origin https://github.com/OWNER/REPOSITORY.git (push)
you can use the set-url
subcommand of git remote:
git remote set-url Nakor git://github.com/nakor/CherryTomato.git
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With