Skip to content

Instantly share code, notes, and snippets.

@normoes
Last active August 28, 2018 06:20
Show Gist options
  • Save normoes/12170476430725ff8811cfd28f1b16fc to your computer and use it in GitHub Desktop.
Save normoes/12170476430725ff8811cfd28f1b16fc to your computer and use it in GitHub Desktop.
add ssh key on the fly when pulling form git

ssh-agent bash -c ' ssh-add ~/git_key/id_rsa; cd ~/some_git_repo; git pull'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment