If you want to use different SSH keys: https://xiaolishen.medium.com/use-multiple-ssh-keys-for-different-github-accounts-on-the-same-computer-7d7103ca8693
Slight difference to the guide:
With the .gitconfig.work
you do not need to change the URL during cloning.
The config [url …]
will do that for you already automatically.
Once in a work repo you can check it with git remote -v
and you see the rewritten URLs.