RedditPP Mascot

RedditPP

r/git • … • u/quokka_wiki

Automatically set origin to redirected URL

``` $ git clone https://tangled.org/quokka.wiki/test-repo Cloning into 'test-repo'... warning: redirecting to https://knot.quokka.wiki/did:plc:zrbnjks5yw3rydtzhtdqgufv/ remote: Thanks for using knot.quokka.wiki! remote: Enumerating objects: 3, done. remote: Total 3, done. Receiving objects: 100% (3/3), done.

$ cd test-repo

$ git remote -v origin https://tangled.org/quokka.wiki/test-repo (fetch) origin https://tangled.org/quokka.wiki/test-repo (push) ```

Can I set a Git flag to change this behavior and automatically make the origin the URL it redirected to? So the origin would automatically be `https://knot.quokka.wiki/did:plc:zrbnjks5yw3rydtzhtdqgufv/` for example.

— 0