I want git to track changes to a specific folder named BananaProject.Widget.Controls
. The folder lies at the root directory of the project, just as .gitignore
.
I am trying to ignore anything else except the activity on that folder but GIT does not track a new file created inside that directory. On the contrary, it tracks changes to files that already exist.
Here is the .gitignore
*
!/BananaProject.Widget.Controls/*
What am I doing wrong?
Edit
Because I want to create C# files I also tried this without any success
*
!/BananaProject.Widget.Controls/*.cs