Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 Windows 批处理文件中编写一个预提交挂钩,它将检查正在提交的文件中的特定字符串。如果字符串存在,则提交将失败。我安装了 TortoiseSVN 客户端。由于它是 tortoisesvn 客户端,它没有像“svnlook”这样的命令来获取文件列表等。我希望为每个提交/添加的文件执行该脚本。
我是这些钩子的新手。有人可以指导我吗?
可能这个页面会有所帮助
似乎您可以使用 FIND 批处理命令,因为当找不到文件中的字符串时它会产生错误代码。