Protect Files from Git
Posted
by Tanner
on Stack Overflow
See other posts from Stack Overflow
or by Tanner
Published on 2010-06-14T15:56:13Z
Indexed on
2010/06/14
16:02 UTC
Read the original article
Hit count: 238
I'm using Git with WindRiver to manage a project of mine. The code is being managed, however the project files (such as .cproject, .project, .wrmakefile, and .wrproject) are not. However when I switch branches, Git deletes those files spite them being in .gitignore, thereby removing my ability to compile the code without having to revert commits or keeping a backup.
So, is there a way to say to Git - ignore these files and don't touch them no matter what?
© Stack Overflow or respective owner