Hi, I wonder why I have the remote.origin.url set to "https://system@scm.trinitydesktop.org/scm/git"
How can I change this in mass? Or should I change it at all. Now each time I work on something I have to do
git remote set-url origin https://mirror.git.trinitydesktop.org/gitea/TDE/<whatever>
PS: I know what scm.trinitydesktop.org is. I just don't know why it is there
On 2021/10/20 05:31 AM, deloptes wrote:
Hi, I wonder why I have the remote.origin.url set to "https://system@scm.trinitydesktop.org/scm/git"
How can I change this in mass? Or should I change it at all. Now each time I work on something I have to do
git remote set-url origin https://mirror.git.trinitydesktop.org/gitea/TDE/<whatever>
PS: I know what scm.trinitydesktop.org is. I just don't know why it is there
Hi Emanoil, git remote rm origin git remote add origin <new url>
Definitely change to TGW url :-)
Cheers Michele
Michele Calgaro via tde-devels wrote:
Hi Emanoil, git remote rm origin git remote add origin <new url>
Definitely change to TGW url :-)
OK, but why in the first place I get it the "wrong way"? I think I pulled from scratch some time ago after some changes were introduced. Asking because I want to be sure after I change, it would not come back.
BTW it seems I have to write a script to do this for me, because it is 175 packages.
thanks Michele
Dne st 20. října 2021 deloptes napsal(a):
Michele Calgaro via tde-devels wrote:
Hi Emanoil, git remote rm origin git remote add origin <new url>
Definitely change to TGW url :-)
OK, but why in the first place I get it the "wrong way"? I think I pulled from scratch some time ago after some changes were introduced. Asking because I want to be sure after I change, it would not come back.
BTW it seems I have to write a script to do this for me, because it is 175 packages.
thanks Michele
I believe that there is no need to remove and add again, but there is enough to make a change of URL. For example:
git config --get remote.origin.url | \ sed "s|.*/|https://mirror.git.trinitydesktop.org/gitea/TDE/%7C" | \ xargs git config --replace-all remote.origin.url
At the same time, you can simply use this sequence of commands for call "git submodule foreach ..." to do change on the whole TDE tree.
Cheers