我正在使用 git 来测试我正在开发的 dojo 小部件。我正在与某人在 *nix 机器上开发这个程序,并且我遇到了如何将所有内容组合在一起的问题。
dojo 按文件夹约定组织,而 git 希望所有内容都位于单个文件夹中。 *nix 上的另一个编码器使用符号链接将文件放置在 dojo 文件夹结构中需要的位置,但在 Windows 上创建这些文件的快捷方式(我认为这与 Windows 等效)会导致 IIS 重定向到快捷方式原始位置破坏文件内的所有相对路径。有没有更合适的方法来做到这一点,因为从 git 存储库中将文件粘贴到需要的位置是 PITA。有没有更好的方法来做到这一点。
I'm using git to test out a dojo widget I'm developing. I am developing this with someone on a *nix machine and I'm running into issues with how everything is put together.
dojo is organized by a folder convention and git wants everything to be inside a single folder. The other coder on *nix is using symlinks to place the files where they need to be within the dojo folder structure but creating shortcuts to these files on windows, which i see as being the windows equivalent, causes IIS to redirect to the shortcut origin location breaking all of the relative paths within the file. Is there a more proper way to do this since coping pasting the files where they need to be from the git repository is a PITA. Is there a better way to do this.
发布评论
评论(1)
您可以尝试在 Windows 中使用实际的符号或硬链接,它可能会给您带来更好的运气。
根据操作系统的不同,您可能已经拥有此功能(例如 Windows 7 中的
mklink
命令,我相信 Vista 中也有);在 Windows XP 中,有一个junction
命令可用作 powertoy(但联结仅适用于目录):http://technet.microsoft.com/en-us/sysinternals/bb896768还有一些 shell 扩展可以通过右键单击菜单项来访问符号链接/连接功能explorer:
You could try using actual symbolic or hard links in Windows, it might give you better luck.
Depending on OS, you may already have this functionality available (e.g. the
mklink
command in Windows 7 and I believe Vista as well); in Windows XP there is ajunction
command available as a powertoy (but junctions apply only to directories): http://technet.microsoft.com/en-us/sysinternals/bb896768There are also a few shell extensions that enable access to symlink/junction functionality as right-click menu items in explorer: