Project GIT integration - Which files?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Project GIT integration - Which files?

跳至解决方案
4,118 次查看
diegobarile
Contributor II

Hello guys.

 

I've successfully installed eGIT into my LPCXpresso v8.0.0 [Build 526] and starts to track my C/CC+ source files.
But currently I'm only able to control source files (.c, .cpp, .h); not the projects structure, configurations and settings.

 

For example when you add to source control a Microsoft .NET project (built with Visual Studio) you typically also add (at least) the solution file (.sln) and the project file (.csproj).


But a typical Eclipse projects has the .metadata folder with tons of subfolders and files.
Which file/folders must me tracked and which not?

 

I've also attached my .gitignore file.

 

Thanks in advance.
Diego B.

Original Attachment has been moved to: .gitignore.zip

标签 (2)
1 解答
3,203 次查看
converse
Senior Contributor V

For Git (or any other SCCS), you only place the project under source control - i.e. the project directory (for Eclipse projects, this is where the .project and .cproject files are located). DO NOT try to place .metadata under source control.

在原帖中查看解决方案

4 回复数
3,203 次查看
gewesp
Contributor I

@ Con Verse,

unfortunately this doesn't work for us.  If we add .metadata to .gitignore, LPCXpresso will fail to open the projects in a fresh clone of the repo.  This is very inconvenient because as the original poster mentioned, .metadata has tons of files and subfolders completely unrelated to the project.

We're investigating and will post a solution if we find one.

0 项奖励
回复
3,203 次查看
converse
Senior Contributor V

Suggest you read the eGit Tutorial at https://eclipsesource.com/blogs/tutorials/egit-tutorial/  

However, you must NEVER place .metdataa under source control.

0 项奖励
回复
3,204 次查看
converse
Senior Contributor V

For Git (or any other SCCS), you only place the project under source control - i.e. the project directory (for Eclipse projects, this is where the .project and .cproject files are located). DO NOT try to place .metadata under source control.

3,203 次查看
diegobarile
Contributor II

Thank you.

Diego.

0 项奖励
回复