将沙哑(git钩)添加到Azure Devops项目中

发布于 2025-01-24 13:00:54 字数 466 浏览 5 评论 0原文

我的存储库位于Azuredevops上,然后通过按钮将其克隆为:“克隆在VS代码中”。存储库正确克隆。我有来自package.json,.gitignore等的文件...

但是我没有.git文件夹。我想安装一些工具来标准化代码提交。我尝试安装Husky 7,但没有找到真正不存在的.git文件夹。

是否有任何方法可以在Azure Devops中使用Git挂钩作为存储库?

还有其他用于在Azure DevOps存储库中使用的提交的工具吗?

当我尝试安装赫斯基时,我会得到一个错误:.git找不到(请参阅 https://git.io https:/git.io /jc3f9

husky -v = ^7.0.0,
npm -v = 6.14.12

My repository is on AzureDevops, and I cloned it by the button: "Clone in VS Code". The repository was cloned correctly. I have the files from package.json, .gitignore, etc...

But I don't have a .git folder. And I would like to install some tool to standardize code commits. I try to install husky 7 but it doesn't find the .git folder which doesn't really exist.

Is there any way to use git hooks for the repository within Azure Devops?

Is there any other tool for standardizing commits that works in an Azure Devops repository?

When i try to install husky, i get that error: .git can't be found (see https://git.io/Jc3F9)

husky -v = ^7.0.0,
npm -v = 6.14.12

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文