Skip to content

Instantly share code, notes, and snippets.

@4lun
Created February 20, 2024 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 4lun/c1e945fb176a4886ce13f2ee834c5e1b to your computer and use it in GitHub Desktop.
Save 4lun/c1e945fb176a4886ce13f2ee834c5e1b to your computer and use it in GitHub Desktop.
Clone a git repo using an alternative ssh key
GIT_SSH_COMMAND="ssh -i ~/.ssh/PRIVATE_KEY" git clone git@github.com:ORG/REPO.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment