gpt4 book ai didi

git 忽略异常

转载 作者:IT王子 更新时间:2023-10-29 01:12:50 26 4
gpt4 key购买 nike

我有一个 gitignore 文件,它使 git 忽略 *.dll 文件,这实际上是我想要的行为。但是,如果我想要一个异常(exception)(即能够提交 foo.dll),我该如何实现?

最佳答案

使用:

*.dll    #Exclude all dlls
!foo.dll #Except for foo.dll

来自 gitignore :

An optional prefix ! which negates the pattern; any matching file excluded by a previous pattern will become included again. If a negated pattern matches, this will override lower precedence patterns sources.

关于git 忽略异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3203228/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com