当前位置: 动力学知识库 > 问答 > 编程问答 >

git - How to pull from a local repository on another computer?

问题描述:

I have create a repository on my laptop, how can I clone the repository in my laptop to my desktop? I have already created a shared folder where my repository is located. Thanks in advance.

网友答案:

"Shared folder" suggests that you're using Windows.

If your shared folder is available as a mapped network drive, say z:, then you can just clone as if it were a local repository:

git clone file://z:/path/to/repository.git

(I'm not sure about slashes vs. backslashes here; currently on Linux so I can't test it.)

Your question title asks about pulling, not cloning. But pulling should be trivial once you've got the clone.

分享给朋友:
您可能感兴趣的文章:
随机阅读: