How to keep .cproject local to each user while working collaboratively through git
Posted
by
Don't panic
on Stack Overflow
See other posts from Stack Overflow
or by Don't panic
Published on 2014-05-28T02:17:10Z
Indexed on
2014/05/28
9:26 UTC
Read the original article
Hit count: 173
I have a C++ project that I am working on with several other people. Some of us have Macs with OSX and some of us have PCs with either Windows 7 or Windows 8.1. We are currently using eclipse to edit the project and git for version control.
The problem is that whenever you change property settings on one team member's computer the .cproject file is updated. Because different configurations/ file extensions are used across OSX and Windows we want the .cproject file to remain local.
We have tried untracking .cproject through a gitignore for the .cproject file, but that just removes the .cproject file from the repository all together. We have also tried setting up an assumed-unchanged for .cproject but if .cproject is changed all this leads to is the need to manually deal with conflicts and updates.
Is there any way to keep the file in the repository, but only change it locally? Ie merging would not update the .cproject file.
© Stack Overflow or respective owner