Bruno Melofiro Bruno Melofiro - 4 years ago 228
Git Question

git remote rm not allowing me to remove config section?

So, this is my first time making a website, using git, and the such.

i was trying to use git as a way of updating my website. i was told to do the following:

git remote add live ssh://

followed by:

git push live master

when i tried pushing i got the following message:

fatal: '/absolute-path-to-site' does not appear to be a git
repository fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository

i figured i did something wrong and tried backtracking by using

git remote rm ssh://

well it doesn't let me remove the path, I get:

error: Could not remove config section 'remote.ssh://'

I can't really find anything to help my with this situation (or I'm not looking right) please help.

Answer Source

You can try to remove the remote manually in .git/config, remove the part like this:

[remote "live"]
    url = ssh://
    fetch = +refs/heads/*:refs/remotes/live/*

Then save the config file, and use git remote -v to double check if it removed or not.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download