Developer forum

Forum » Development » .gitignore
Juan Sierra
Juan Sierra
Reply

Hello there, 

any recommendations for .gitignore file?

are these good starting points?
https://github.com/dynamicweb/dynamicweb-templates/blob/master/.gitignore
https://github.com/dynamicweb/solutionset/blob/master/.gitignore

I want to share a project in Github among the dev team. Each member pulling to his/her local folder.

Thanks in advance.
Juan


Replies

 
Nicolai Pedersen
Reply

That is the best bet currently.

I would add /Files/System/Log and Files/system/diagnostics as well.

Depending on your setup, maybe also GlobalSettings.aspx/config

BR Nicolai

 
Juan Sierra
Juan Sierra
Reply

Thanks Nicolai, 

I found that the mentioned .gitignore excludes a necesary /bin folder. I Have included those and using it for now. I'll share the final one once it is stable.

 
Ronnie Poulsen
Ronnie Poulsen
Reply

Hello,

Any new thoughts on this subject? I am new to DynamicWeb, and have been tasked with finding a best practice for .gitignore across our DynamicWeb projects.

The .gitignore files linked to in this thread seems more generic than DynamicWeb focused to me.

Thanks in advance.

 
Jeppe Eriksson Agger Dynamicweb Employee
Jeppe Eriksson Agger
Reply
This post has been marked as an answer

Hi Ronnie,

You can take a look at my project on Github from Dynamicweb Summit 2018. I have two .gitignore files in the project, one at the solution level to handle all the generic stuff like assemblies and fakes, and some folders that are specific for that project because it's a Rapido-based solution. But, I also have a .gitignore file in my Files/Template project. This one filters out the specific Dynamicweb files.

The ignore files do assume a process that you may not use, but you can adapt them to fit any workflow. For example, if you're using local config files, the ignore file assumes that they're called *.local.config. If you're not sure what local config files are, then you can read that section of the README in the project.

You can see it here: https://github.com/jeppeagger/dw-summit-2018

I hope that moves you forward.

- Jeppe

Votes for this answer: 1
 
Ronnie Poulsen
Ronnie Poulsen
Reply

Hi Jeppe,

Thank you for your fast reply. Your .gitignore files provides a good starting point for me so thanks for that.

 

You must be logged in to post in the forum