Welcome to FreeSoftwareServers Confluence Wiki

Testing:

 nano -c .gitignore ;  find . -not -path './.git/*' | git check-ignore -v --stdin

Check if Files are tracked:

git ls-files **/*


Note: do NOT place this in .git , it can go anywhere, but my assumption is it's only respected downstream of its location, so the root dir makes most sense to me.

w/ File Explorer in Windows you can name a file 

.gitignore.

and it will rename it to .gitignore.

https://stackoverflow.com/questions/10744305/how-to-create-a-gitignore-file

Contents:


/*
!.gitignore
!/ExcelWebAddIn1
/ExcelWebAddIn1/*
!/ExcelWebAddIn1/ExcelWebAddIn1
/ExcelWebAddIn1/ExcelWebAddIn1/*
!ExcelWebAddIn1/ExcelWebAddIn1/ExcelWebAddIn1Manifest
/ExcelWebAddIn1/ExcelWebAddIn1/ExcelWebAddIn1Manifest/*
#!ExcelWebAddIn1/ExcelWebAddIn1/ExcelWebAddIn1Manifes/vsdev.prod.xml
!ExcelWebAddIn1/ExcelWebAddIn1/ExcelWebAddIn1Manifes/*.prod.xml

If already checked in, remove via:

git rm --cached .vs/ -r
git rm --cached ExcelWebAddIn1/.vs/ -r  

git rm --cached .vs/slnx.sqlite
git commit -m "rm --cached"
git push
  • No labels