简体   繁体   中英

Remove git remote in IntelliJ/PyCharm

I Git Remotes dialog I see this for my project:

在此处输入图片说明

How do I remove the second remote? The minus button is disabled.

This project is a symbolic link to another git project inside the main project's misc/docker/... directory.

The reason I want to remove this project because it complicates the git operations window.

Try manually removing it through the config file in the .git folder . It should look something like,

[remote "Remote Name"]
    url = 
    fetch = 

preferences > version control> click on remove icon. After that, the remote is going to appear in the "Unregistered roots" section and is not going to be available in the list of remotes to commit/push版本控制

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM