Git best practice

I am wondering what source files should be included in a git repository for servoy projects. I have inherited a servoy project (in a .servoy file). I have imported the solution into a developer instance. The solution source files are stored in my \servoy_workspace directory on the developer box. Would it be fine to put the whole \servoy_workspace directory under git? Are there files in there to exclude? Note we do git on the command line so egit will not be used.

I use git from the command line without any problems. Inside my workspace I have one folder for each project I work on, each linked to a separate repository on github.
My .gitignore has

.metadata/

in it.

Hope this helps,

bdezonia:
I have inherited a servoy project (in a .servoy file).

What do you mean with inherited?

bdezonia:
I have imported the solution into a developer instance. The solution source files are stored in my \servoy_workspace directory on the developer box. Would it be fine to put the whole \servoy_workspace directory under git? Are there files in there to exclude? Note we do git on the command line so egit will not be used.

I think it is not a good idea, because in the Servoy workspace there is a folder .metadata which should not put under version control. Also you can get performance issues if you have the .git folder in your Servoy workspace.

Is it better to keep Git repository inside or outside of Eclipse workspace?
Should I store git repository in Home or Eclipse Workspace?

I think it is better to separate the Git folder from the Servoy workspace folder as EGit it would do. But you don’t need EGit for that. You can create your Solutions / Modules in Servoy and after creation, you can remove it from Servoy Developer, but don’t delete it. After removing, you can move it to the Git folder and import it again in Servoy Developer.

In the past I get an error about Servoy Developer can not import, because it already exists in workspace. Then you have to remove from the “Workings sets”.

As .gitignore, I had the following content.:

*.backup

*.bak
*.data
*.jasper
*.log
*.orig
*.orig~
*.pdf
*.tmp
.gitignore~

If you use branches, then you should be aware of this bug. If you close Servoy Developer before branch switch, then you ran not into that error, but then you have this time consuming building problem, if you have a lot of DBF tables or use Servoy over a VPN.