windows - 在源代码管理中包含外部文件夹

标签 windows git tortoisegit

我的主要软件应用程序文件夹在这里:

D:\My Programs\2017\MeetSchedAssist

并且它使用 TortoiseGit 进行源代码控制。但我现在在这里多了一个文件夹:

C:\Users\ajtru\Documents\HelpNDoc\Templates\html\MSA HTML Template

它必须保留在那里,因为 HelpNDoc 在此位置需要它。好吧,它确实允许您默认设置不同的位置:

https://www.helpndoc.com/news/2014-06-03-advanced-keyword-management-and-custom-template-path-helpndoc-44

但这不是我想要做的,因为我的每个程序都有自己的模板。

那么,使用 TortoiseGit 将这个外部文件夹作为源代码控制的一部分而不需要不断复制该文件夹的最简单方法是什么?可以吗?

最佳答案

您可以在您的工作树中设置一个指向真实文件夹的连接点。

例如以管理员身份运行:

mklink /j D:\My Programs\2017\MeetSchedAssist\fromhere C:\Users\ajtru\Documents\HelpNDoc\Templates\html\MSA HTML Template\tohere

https://learn.microsoft.com/windows/desktop/FileIO/hard-links-and-junctions

关于windows - 在源代码管理中包含外部文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51043591/

相关文章:

php - Windows 上 php pdo 的 sqlite 正确路径/URI

c++ - CDHtmlDialog 将焦点设置在输入字段上

git - 在 Git 中查看已删除的文件

git - 如何让 'git status' 始终使用短格式?

git - TortoiseMerge 可以用作 Windows Git Bash 的 difftool 吗?

git - 仅将一个文件还原到父分支

php - 在 Windows 上为要在 PHP 中使用的 C++ 静态库创建 .so 文件

c - c语言数组索引相关问题

git - 为什么 git format-patch 生成的补丁早于修订范围的时间戳

Git 卡在 POST git-receive-pack 上