Does anyone have a suitable gitignore file for Umbraco projects? I'm quite happy storing the core Umbraco files in Git, but want to exclude things like App_Data/Temp and anything else that is considered to be a "temp" file.
Just stumbled across this topic... in case others do the same in future, there is a good blog post by Offroadcode about their Mercurial (Hg) ignore file, which could be copied across to Git too.
Just butting in on the conversation to say that I've created a pull request for an Umbraco git ignore file. Its mostly taken from Offroadcode's post with a few little tweaks of my own.
Git Ignore File
Hi,
Does anyone have a suitable gitignore file for Umbraco projects? I'm quite happy storing the core Umbraco files in Git, but want to exclude things like App_Data/Temp and anything else that is considered to be a "temp" file.
Mark.
We generally convert our umbraco projects to web application project, so find that the following pretty standard one does it for us.
If you're running as a web site, you probably just need to omit the bin
That blanket App_Data ignore might not be so useful if you're running SQLCE sites. So happy to hear any improvements :)
Just stumbled across this topic... in case others do the same in future, there is a good blog post by Offroadcode about their Mercurial (Hg) ignore file, which could be copied across to Git too.
http://offroadcode.com/blog/2012/4/5/mercurial-ignore-file-for-umbraco/
Cheers, Lee.
The link in Lee's post doesn't seem to work. Here is a working one for anyone interested.
http://offroadcode.com/blog/2012/4/5/mercurial-ignore-file-for-umbraco/
That link no longer works either.
I think it would be a good idea to have Umbraco in the Github add .gitignore dropdownlist:
I see for instance that Typo3, Wordpress and Plone are in there too.
greetings,
Anthony
@Anthony - great idea! Why not make it happen? https://github.com/github/gitignore
Just butting in on the conversation to say that I've created a pull request for an Umbraco git ignore file. Its mostly taken from Offroadcode's post with a few little tweaks of my own.
The ignore file I added has finally made it to github.com. You should be able to select an Umbraco git ignore file when creating a new repository now.
is working on a reply...