I can use HTTPS and SSH URL's for GitHub repos, thanks to insteadOf
This forces GitHub to always use SSH, even for HTTPS URL’s! This way, you can use
https:// GitHub URL’s and they will still use your SSH key.
When cloning an HTTPS URL, it now gets rewritten as an SSH URL. It will instead be fetching from
email@example.com via SSH.
Alternatively, this forces GitHub to always use HTTPS. Great for macOS, where you can use git-credential-osxkeychain to store your GitHub token. This will not rewrite
firstname.lastname@example.org:user/repo.git URL’s, though, so I don’t really recommend it!
Hat tip to these people!