Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
870 views
in Technique[技术] by (71.8m points)

.gitignore 没有生效?

clipboard.png

clipboard.png

如上图,

/public/js
/public/css
/public/build

都还在,没有被忽略。

/resources/assets/bower这个文件夹却是能被正确忽略。 why?

猜测原因。这个规则是后边添加的,在这之前/public/js,/public/css,/public/build 都是被提交过的。

是这样吗?

如果是这样又该怎么处理呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

对,这个是因为之前已经提交过,解决办法就是先把.gitignore中这三个目录去掉,然后删除这三个目录后再提交,push,最后再把这三个目录添加到.gitignore中,这样以后就被排除了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...