如何在SourceTree中使用git存储库忽略文件夹中的所有文件? [英] How to ignore all files in a folder with a git repository in SourceTree?
本文介绍了如何在SourceTree中使用git存储库忽略文件夹中的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个文件夹需要提交,但我需要忽略这些文件夹中的所有文件,因为它们只包含临时文件。
我该怎么做?
解决方案
添加到.gitignore:
*
!.gitignore
I have a Bitbucket Git repository managed with SourceTree.
I have 2 folders that I want to commit but I need to ignore all the files in these folders because they contain only temporary files.
How can I do that?
解决方案
Add this to .gitignore:
*
!.gitignore
这篇关于如何在SourceTree中使用git存储库忽略文件夹中的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文