Git Doc: Add Clone With Custom SSh Key

This commit is contained in:
2024-11-07 13:37:10 +03:30
parent bb2d98ff12
commit b9659ada40

View File

@@ -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 <PATH_TO_SSH_KEY>' git config --add --local core.sshCommand 'ssh -i <PATH_TO_SSH_KEY>'
``` ```
For Clone With Custom SSH Key Use:
```bash
git -c core.sshCommand="ssh -i <key-path>" clone host:repo
```
*Replace `<PATH_TO_SSH_KEY>` with the actual path to your SSH key file.* *Replace `<PATH_TO_SSH_KEY>` with the actual path to your SSH key file.*
## Creating and Managing a Local Git Repository ## Creating and Managing a Local Git Repository