DEV Community

Discussion on: Open the GitHub project page of a repo from Terminal

Collapse
 
ewoks profile image
Beeblebrox

any tip on using two or more remotes (different credentials) on the same machine.. Let's say I use GitHub, my home NAS git and company's git server on the same machine for different projects... How to switch between these fast?

tips needed :) thanks in advance

Collapse
 
aghost7 profile image
Jonathan Boudreau

You could just change your ssh config to use different identities based on the IP or something. If you need to use a different email, etc for certain projects you can use git config user.email 'you@email.com' (without --global) to change it from the default global configuration.