Skip to content

Instantly share code, notes, and snippets.

@DaWe35
Last active November 27, 2024 22:09
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
# useful for aur arch
# 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