Skip to content

Instantly share code, notes, and snippets.

@cb-v4s
Last active August 20, 2021 02:00
Show Gist options
  • Select an option

  • Save cb-v4s/293e0dee218da1415c9288db6d2c8d03 to your computer and use it in GitHub Desktop.

Select an option

Save cb-v4s/293e0dee218da1415c9288db6d2c8d03 to your computer and use it in GitHub Desktop.
clone a private repo
ssh-keygen -t ed25519 -C "yesx@domain.tld" -f ~/.ssh/foo
; then manually insert .pub key on the github account in settings > SSH and GPG keys > SSH keys
ssh-agent bash -c 'ssh-add ~/.ssh/foo; git clone git@github.com:username/repo_name.git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment