如何创建在Windows上创建git repo的符号链接?

时间:2017-03-24 06:44:39

标签: windows git github terminal symlink

是否可以在Windows上创建一个git repo的符号链接,这样我就不必克隆一个回购。

  

意味着没有克隆回购,我只需编辑一个foriegn回购   (朋友回购)我的Windows电脑使用符号链接。

实际上我不知道这样的程序,如果有人可以告诉我如何正确地做到这一点。

1 个答案:

答案 0 :(得分:0)

打开git bash并编写此命令:

git worktree add /<path>/<name>

例如:

git worktree add /tmp/link2

# find out where is the folder:
mount 

The 3rd line will show you the path on the disk

现在你将有第二个文件夹参考原始存储库。

enter image description here

相关问题