––thursday #6: using git over ssh

Got a secret project on machine A and too cheap to get a Github private repo? Clone it directly on machine B with:

$ git clone ssh://user@A/absolute/path/to/repo/

Replace “user” with your username on A, “A” with the actual hostname of A, and “/absolute/path/to/repo/” with the absolute path to the git repository.

kristina chodorow's blog