DEV Community

Discussion on: Automatically managing personal and work git configurations

Collapse
 
dogers profile image
Dogers

Rather than changing the URL you use, why not add it to your two .gitconfig files to rewrite it automatically?

[url "git@github.com-work"]
insteadOf = git://github.com

etc

Collapse
 
fedekau profile image
Federico Kauffman

That is very good idea actually, I will try it, thanks!