“Enter passphrase for key” - when git asks to login all the time
When you setup a new computer, will get into the situation, that you will proably clone a repo.
But if you want to interact with that repo like git pull origin develop it asks you for your passphrase all the time.
So how to approach this and prevent this? (on MacOS)
Add ssh key to keychain
ssh-add -K ~/.ssh/your-private-key-file
Create config
touch .ssh/config
Add following config file to .ssh/config
Host * UseKeychain yes AddKeysToAgent yes IdentityFile ~/.ssh/id_rsa















