util:devel:git
Differences
This shows you the differences between two versions of the page.
| util:devel:git [2010/06/25 21:48] – external edit 127.0.0.1 | util:devel:git [2022/01/27 15:42] (current) – Added some info about SSH as transport phil | ||
|---|---|---|---|
| Line 116: | Line 116: | ||
| which has been corrected and should be dropped. | which has been corrected and should be dropped. | ||
| + | ===== Cloning via SSH ===== | ||
| + | |||
| + | Using SSH as transport is trivial, as it's widely used for repositories with | ||
| + | write access. The URL to use for '' | ||
| + | this: | ||
| + | |||
| + | ssh:// | ||
| + | |||
| + | An alternative, | ||
| + | |||
| + | [user@]example.com: | ||
| + | |||
| + | ==== Specifying the SSH Identity ==== | ||
| + | |||
| + | Sometimes it's not sufficient to clone via SSH and relying upon the first | ||
| + | accepted key in '' | ||
| + | in Github - like with '' | ||
| + | and are distinguished based on pubkey. This may be given during clone like so, according to a popular answer on [[https:// | ||
| + | |||
| + | git clone -c core.sshCommand="/ | ||
| + | |||
| + | Or fixed after the fact in the local repo's config: | ||
| + | |||
| + | git config --local core.sshCommand "/ | ||
util/devel/git.txt · Last modified: by phil
