Skip to content

Instantly share code, notes, and snippets.

@thinmy
Forked from gskielian/git-specify-ssh-key
Created February 25, 2018 20:51
Show Gist options
  • Save thinmy/f22e4203045de391fa82620007add204 to your computer and use it in GitHub Desktop.
Save thinmy/f22e4203045de391fa82620007add204 to your computer and use it in GitHub Desktop.
Specifying SSH Key within Git Clone
#how to specify an ssh key to use when cloning a repo in Mac
ssh-agent bash -c 'ssh-add /Users/UR_USERNAME/.ssh/UR_PRIVATE_KEY; git clone git@DAS_GIT_URL'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment