Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I break the link of git config <url>.insteadOf <url>

Tags:

git

url

config

I set my url to other url with git config .insteadOf , and now I want to break the link of it. But I don't know how to do that and I can't find it at the reference page.

like image 413
JaeYun Kim Avatar asked May 16 '13 13:05

JaeYun Kim


2 Answers

You can remove the section [url "[email protected]"] with:

git config --global --remove-section url."[email protected]"

That is safer than trying to edit manually the git config file.

Reference page: git config#--remove-section.

like image 90
VonC Avatar answered Nov 01 '22 00:11

VonC


All your git config changes go to ~/.gitconfig, so you should be able to edit it, the relevant part looks like this:

[url "[email protected]"]
        insteadOf = gh

so, maybe try removing these lines?

like image 45
tuxcanfly Avatar answered Nov 01 '22 02:11

tuxcanfly