用于在Windows上进行符号链接转换的Git挂钩
发布时间:2020-12-14 02:46:31 所属栏目:Windows 来源:网络整理
导读:我尝试在 Windows上制作git hooks,自动将位于存储库中的unix符号链接转换为本地机器上的hardlinks junctions窗口.我怎么可能这样做?我们使用基于Windows和Unix的操作系统. 我扩展了Git的命令列表,如Git Symlinks in Windows 我读了关于钩子并创建了post-che
我尝试在
Windows上制作git hooks,自动将位于存储库中的unix符号链接转换为本地机器上的hardlinks junctions窗口.我怎么可能这样做?我们使用基于Windows和Unix的操作系统.
我扩展了Git的命令列表,如Git Symlinks in Windows 我读了关于钩子并创建了post-checkout钩子: #!/bin/sh exec git rm-symlinks 它可以工作,当我执行git checkout #branch_with_symlink时,但当我做下一次checkout时,git写道: error: Your local changes to the following files would be overwritten by checkout: #path_to_symlink Please,commit your changes or stash them before you can switch branches. git状态: # On branch #branch_with_symlink nothing to commit,working directory clean git没有预先签出钩子,我不明白,我是如何进行这种转换的 解决方法
您可以尝试使用涂抹过滤器,而不是使用钩子.它们更适合改变文本文件的内容而不是符号链接,但我认为你可以让它们起作用.
这里的一些文档:http://git-scm.com/docs/gitattributes#__code_filter_code (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows-installer – Techsmith Snagit的Windows安装程序的
- windows-server-2008-r2 – 如何在已经共享的文件夹上拥有写
- 如何截取屏幕截图并将其保存为Windows上的JPEG?
- windows – 添加到通知托盘的图标在鼠标悬停时消失
- .net – Windbg期待mscordacwks.dll的不同版本
- .net – 带有Windows窗体的XPS
- 用于Windows API功能的.NET包装器
- windows – 为什么Hudson不将xcopy识别为命令?
- active-directory – 如何过滤仅适用于Windows XP的GPO中的
- windows-server-2008 – 在Windows Server 2008上禁用UAC的
推荐文章
站长推荐
- Windows Phone 7 – 如何在WIndows Phone应用程序
- Windows Mobile 6.5手势和C#2.0应用程序
- 窗口 – 管道输出(stdout)从运行进程Win32Api
- .Net DateTime到DOS日期32位转换
- wix – 一个MSI中的两个PathEdit对话框(错误2343
- 使用DOS中断字符串输入和显示输入MASM
- 在Windows下调试Android NDK
- windows – Xampp – 安装SQL Server和Visual St
- powershell – echo [uint32] :: maxvalue说’ui
- wix – 如何在不重新启动任何组件的情况下强制安
热点阅读