I have a question about Umbraco and Git. We have to work on Umbraco with 2 persons and we would like to use Git. I use GitHub for Windows to push my files to our github repository.
We just copy the umbraco folder to our repository? Or do we have to delete DLL's or .... ? Does someone has a tutorial about Umbraco and Git?
Thanks in advance! Niels
It depends on how you have the CMS set up and how you intend to expand on it. If you are simply editing the CMS as a standalone website, in other words you are not using Visual Studio to supplement the CMS with additional projects, then it should be perfectly safe to just commit almost the entire CMS structure to a repository.
However, you can always 'ignore' files and folders like the 'app_data/umbraco.config', 'app_data/preview/' and 'app_data/temp/'.
I use Visual Studio and convert my website folder into a VS MVC application with a csproj file. I will also remove all the DLLs and place them in a separate 'libraries' folder in the root of my repository trunk. I will then add references back into the MVC application. This has several benefits:
The application becomes compilable - allowing dependent projects and references to be checked/updated upon compile;
CI integration is better e.g. TeamCity could compile the site and check references, unit tests etc;
Libraries can have a central location and therefore easily referenced by additional projects
You can have a snapshot of the all libraries used by your solution at any one point;