I have a .gitignore file within my project with the following rules:
# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
[Xx]64/
[Xx]86/
[Bb]uild/
bld/
[Bb]in/
[Oo]bj/
I have a specific folder in my application that uses the keyword "Build" but I want to include this particular folder and it's files as part of my commits.
The paths I want to include are as following:
Views/Build/Index.cshtml
Views/Build/Create.cshtml
I've tried the following but it isn't working:
!Views/[Bb]uild/*
What am I doing wrong?
I'm struggling to find an answer to my problem and hope someone can help.
/
to make the apply at the root, e.g. when build output is only ever built into the root folder.git add -f Views/Build/Index.cshtml
even if that file is actually ignored (this will effectively turn off the ignore rule for that file, so subsequent changes will also be detected properly).