Copied to clipboard

Flag this post as spam?

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


  • Silvija 58 posts 171 karma points
    Jul 15, 2019 @ 13:15
    Silvija
    0

    Umbraco 8 gitignore file

    Is there any example of gitignore file for umbraco 8 visual studio project?

    Thanks

    Silvija

  • bdsoko 4 posts 94 karma points
    Jul 15, 2019 @ 16:48
    bdsoko
    100

    For Umbraco 7, I've always referenced https://github.com/github/gitignore/blob/master/Umbraco.gitignore

    It might work for v8 as well.

  • Silvija 58 posts 171 karma points
    Aug 28, 2019 @ 20:56
    Silvija
    0

    Its been i while i didnt need it, now I am again back to it. I have one more question, do you combine that gitigignore file with default visual studio gitignore, or you just delete vs default one and paste this one?

  • Michaël Vanbrabandt 863 posts 3346 karma points c-trib
    Feb 10, 2020 @ 07:36
    Michaël Vanbrabandt
    0

    Hi all,

    there is a slight change needed for Umbraco V8, see pull request on github.

    https://github.com/github/gitignore/pull/3302

    The change is to not ignore the new umbraco > views > packages folder and contents. By default it will be ignored.

    /Michaël

  • Amir Khan 1271 posts 2684 karma points
    Aug 28, 2019 @ 21:23
    Amir Khan
    1

    I merge them, need the vstudio stuff also so you don't end up with a bunch of junk.

  • Colin Anderson 14 posts 105 karma points
    May 19, 2021 @ 10:45
    Colin Anderson
    0

    If you are ignoring the /Umbraco folder, the exclusion definitions (!) don't work in the file at https://github.com/github/gitignore/blob/master/Umbraco.gitignore

    If you ignore a folder (/[Uu]mbraco/) no amount of exclusions will work under that folder so !/[Uu]mbraco/[Vv]iews/[Pp]ackages/* will never work.

    The following will work by ignoring everything under the Umbraco folder but not ignoring the actual folder.

    **/[Uu]mbraco/**
    

    You must then exclude each folder in the path and then the contents of the final path.

    !**/[Uu]mbraco/[Vv]iews/
    !**/[Uu]mbraco/[Vv]iews/[Pp]ackages/
    !**/[Uu]mbraco/[Vv]iews/[Pp]ackages/**
    
Please Sign in or register to post replies

Write your reply to:

Draft