简体   繁体   English

Symlink-如何使用Git创建符号链接

[英]Symlink - how to create symlink with Git

I need to create symbolic link in my web pages. 我需要在网页中创建符号链接。 There is public folder called data . 有一个名为data公用文件夹。 It would be great if I could create symlink from this folder to external folder out of my web application. 如果可以在我的Web应用程序中创建从此文件夹到外部文件夹的符号链接,那就太好了。 There are stored data for downloading. 存储了要下载的数据。

  1. Is required to make the data folder? 是否需要制作data文件夹?
  2. When I push it to remote repo, does it work in each of clones after fetching? 当我将其推送到远程仓库时,它在获取后是否可用于每个克隆?

The symlink as such is just recorded by git . 这样的符号链接仅由git记录。 Its target does not have to exist. 它的目标不必存在。 Whether or not it works when you check out the repo also depends on the capabilities of the systems where you check it out (some file systems don't permit symlinks at all, for example). 签出存储库时它是否起作用还取决于签出系统的系统功能(例如,某些文件系统根本不允许符号链接)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM