Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Tableau
  3. Question
Tableau

How do I tell Git to ignore everything except a subdirectory?

Asked by Amit Raj Jul 1, 2021 902 views 1 answer
Share

About this question

 I want to ignore all files in my repository except those that occur in the bin subdirectory. I tried adding the following to my .gitignore:

*

!bin/*

This does not have the desired effect, however: I created a new file inside of bin/, but doing git status still shows nothing to commit (working directory clean). How git ignore everything except?

Your answer

1 Answer

More Tableau discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Tableau Blogs

Guides, tips and career advice on Tableau from JanBask experts.