![]() | |
Lenovo IdeaPad Slim 3 14ABR8 AMD Ryzen 5Lenovo IdeaPad Slim 3 14ABR8 82XL0004ID - ABYSS BLUE = LENOVO SLIM 3 82XL007CID R5-7530U/8GB/512GB/14.0/WIN11+OHS/ABYSS BLUE, Lenovo IdeaPad Slim 3 14ABR8 82XL0005ID - ARCTIC GREY = LENOVO SLIM 3 82XL007BID R5-7530U/8GB/512GB/14.0/WIN11+OHS/ARCTIC GREY Free Klik Disini ! |
If have you got a github project existing and you want using ssh key for push or pull data on repository. You can follow below steps for problem solving:
GIT_SSH_COMMAND
GIT_SSH_COMMAND
like this:GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_example" git clone example
-i
can sometimes be overridden by your config file, in which case, you should give SSH an empty config file, like this:GIT_SSH_COMMAND="ssh -i ~/.ssh/id_rsa_example -F /dev/null" git clone git@github.com:example/example.git
core.sshCommand
core.sshCommand
setting. There's no more need to use the environment variable. Here's how you clone a repo and set this configuration at the same time:git clone -c "core.sshCommand=ssh -i ~/.ssh/id_rsa_example -F /dev/null" git@github.com:example/example.git
cd example/
git pull
git push
git config core.sshCommand "ssh -i ~/.ssh/id_rsa_example -F /dev/null"
.git/config
Reference article : https://superuser.com/questions/232373/how-to-tell-git-which-private-key-to-use
Video :