最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Using post-commit git hook on visual studio github extension - Stack Overflow

programmeradmin3浏览0评论

I simply want to fire a program on each commit done inside the git extension environment in visual studio 2022. The hooks that I set up work perfectly when commit is called from CMD, but are totally ignored when comitted inside visual studio

I have tried putting the hooks global and local without results. I read somewhere that be default visual studio creates its own kind of git environment which will not find your hooks, so you need to tell it to use the local version of git by changing the external web tools paths, but this also did not work

For now Id like to just see anything done on post-commit so the content of the hook is not very relevant I think. Especially since it is called fine from the CMD

I could not find much recent posts about this problem. Is there something I have missed, or some other simple workaround? Looking into creating my own visual studio extension, but there must be a simpler way no?

发布评论

评论列表(0)

  1. 暂无评论