Skip to content

Instantly share code, notes, and snippets.

@DaWe35
Created January 17, 2024 06:17
Show Gist options
  • Save DaWe35/a8e17d9ce91c4d71cce4f1d87d3132f7 to your computer and use it in GitHub Desktop.
Save DaWe35/a8e17d9ce91c4d71cce4f1d87d3132f7 to your computer and use it in GitHub Desktop.
Git push with SSH key
# generate an SSH key pair
cd repository
git config --add --local core.sshCommand 'ssh -i /home/user/.ssh/ssh_key'
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment