From b9659ada40738ac36d24402a7a8eb59375512111 Mon Sep 17 00:00:00 2001 From: radinpirouz Date: Thu, 7 Nov 2024 13:37:10 +0330 Subject: [PATCH] Git Doc: Add Clone With Custom SSh Key --- Code Management/Git/main.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Code Management/Git/main.md b/Code Management/Git/main.md index f3fe02d..bcd3f12 100644 --- a/Code Management/Git/main.md +++ b/Code Management/Git/main.md @@ -31,6 +31,12 @@ If you need to use a specific SSH key for your Git operations, you can configure git config --add --local core.sshCommand 'ssh -i ' ``` +For Clone With Custom SSH Key Use: +```bash +git -c core.sshCommand="ssh -i " clone host:repo +``` + + *Replace `` with the actual path to your SSH key file.* ## Creating and Managing a Local Git Repository