Skip to content

Instantly share code, notes, and snippets.

@dbritto-dev
Last active June 10, 2021 16:49
Show Gist options
  • Select an option

  • Save dbritto-dev/adddd2f36066ce441c7dadf360b1dfaf to your computer and use it in GitHub Desktop.

Select an option

Save dbritto-dev/adddd2f36066ce441c7dadf360b1dfaf to your computer and use it in GitHub Desktop.

Clone a new project for a new account

GIT_SSH_COMMAND='ssh -i ~/.ssh/<id_rsa_custom>' git clone [email protected]:<your-project>.git

Configure git to use the custom GIT_SSH_COMMAND

git config core.sshCommand 'ssh -i ~/.ssh/<id_rsa_custom>'

Note: run this command inside of the repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment