rubdottocom rubdottocom - 4 months ago 29
Git Question

How to ignore all files in a folder with a git repository in SourceTree?

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 theses folders because contains temporary files.

How can I do that?

Thank you!

Answer

Add this to .gitignore:

*
!.gitignore