Finally seriously playing with git-tfs.  But how do I .gitignore without accidentally checking in the file [not that that'd necessarily be the end of the world]?

Technical Jargon:


Once cloned, I set up my usual set of gitignore rules (to exclude
builds artefacts, test results etc) and placed them in to the
.git/info/exclude file (rather than a .gitignore file) to ensure that
they arenโ€™t checked in to the TFS repository.

Wait, what?  An exclude file?  That's intriguing...

365Git | Three ways of excluding files.:


Per Repository: in .git/info/excludes

You can exclude files on a per repository basis by editing the .git/info/excludes file in your repository.

Hopefully that's a winner.

Labels: ,