As the article "Tips for using a git pre-commit hook", you need, in that hook, to ensure that code that isn't part of the prospective commit isn't tested within your pre-commit script:# pre-commit.shgit stash -q --keep-index# Test prospective commit# call format, stylecop...git stash pop -q 这篇关于Visual Studio格式样式的版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
09-06 00:53