cd repo
git config core.sshCommand 'ssh -i private_key_file'
# later on
git pull
.git/config
file content:
[core]
sshCommand = ssh -i private_key_file
Refer:
More than 1 year has passed since last update.
cd repo
git config core.sshCommand 'ssh -i private_key_file'
# later on
git pull
.git/config
file content:
[core]
sshCommand = ssh -i private_key_file
Refer:
Register as a new user and use Qiita more conveniently