Created
April 17, 2023 03:53
-
-
Save travishorn/b533452564e250cdf4420e533103602c to your computer and use it in GitHub Desktop.
git clone via SSH with an identity file (private key)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone myusername@myserver:/home/git/myrepo | |
# `myusername` is your username on the server which hosts a bare git repository | |
# `myserver` is a `Host` configured in `~/.ssh/config` on your local machine | |
# `/home/git/myrepo` is the path to the bare repository on the server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment