0

Add Remote: better default name of remote from URL

michael foerderer 2 months ago updated by Thomas Singer 2 months ago 2

If a remote from GitHub is added always the last part of the url, which is the repository name, is used. If you want to add another fork to modify the branch as maintainer of the forked repository I always need to change the name.

E.g. for GitHub it would be better to not take the last part, e.g. instead of https://github.com/Spacetown/gcovr it would be better to take https://github.com/Spacetown/gcovr or the last two parts.

Hi,

I'm not talking about creating a fresh clone. I often need to add forks of my repository as remote.

Regards

Michael

I use "24.1 RC 4 #21118, installed: #21099". My repo is a fork of my organisation repo and I want to add other forks. For all (GitHub) URLs only the last part is used as remote name.