Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mark Darling 2 posts 22 karma points
    Apr 29, 2011 @ 14:21
    Mark Darling
    0

    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.

  • Kevin Blake 23 posts 45 karma points
    Jun 20, 2011 @ 12:10
    Kevin Blake
    2

    We generally convert our umbraco projects to web application project, so find that the following pretty standard one does it for us.

    obj
    bin
    _ReSharper.*
    *.csproj.user
    *.resharper.user
    *.resharper
    *.suo
    *.cache
    *.Publish.xml
    ~$* 
    App_Data

    If you're running as a web site, you probably just need to omit the bin

    obj
    _ReSharper.*
    *.csproj.user
    *.resharper.user
    *.resharper
    *.suo
    *.cache
    *.Publish.xml
    ~$* 
    App_Data

    That blanket App_Data ignore might not be so useful if you're running SQLCE sites.  So happy to hear any improvements :)

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 14, 2012 @ 11:59
    Lee Kelleher
    0

    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.

  • suzyb 474 posts 932 karma points
    Jul 16, 2012 @ 16:27
    suzyb
    1

    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/

  • Sheridan 10 posts 101 karma points
    Aug 05, 2016 @ 08:19
    Sheridan
    0

    That link no longer works either.

  • Anthony Candaele 1197 posts 2049 karma points
    Jan 10, 2014 @ 09:26
    Anthony Candaele
    1

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jan 10, 2014 @ 11:08
    Lee Kelleher
    0

    @Anthony - great idea! Why not make it happen? https://github.com/github/gitignore

  • Dan Lister 416 posts 1974 karma points c-trib
    Jan 14, 2014 @ 11:39
    Dan Lister
    2

    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.

  • Dan Lister 416 posts 1974 karma points c-trib
    Apr 04, 2014 @ 09:23
    Dan Lister
    2

    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.

Please Sign in or register to post replies

Write your reply to:

Draft