Files to ignore when using Visual Studio with Git

后端 未结 3 1040
陌清茗
陌清茗 2020-12-28 19:08

I\'ve installed Git to do some development using Visual Studio 2008. Most of the work will be new development but we do have some old projects from prior to VS2005 that I wa

相关标签:
3条回答
  • 2020-12-28 19:53

    You should ignore:

    • the bin directory
    • the obj directory
    • *.suo
    • *.user
    0 讨论(0)
  • 2020-12-28 19:57

    In GitExtensions the default .gitignore is this. It can be a bit shorted by removing most individual file extensions and only exclude the directories they are in.

    *.obj
    *.exe
    *.exp
    *.pdb
    *.dll
    *.user
    *.aps
    *.pch
    *.vspscc
    *_i.c
    *_p.c
    *.ncb
    *.suo
    *.tlb
    *.tlh
    *.bak
    *.cache
    *.ilk
    *.log
    *.zip
    [Dd]ebug*/
    *.lib
    *.sbr
    Thumbs.db
    [Ll]ib/
    [Rr]elease*/
    [Tt]est[Rr]esults/
    _UpgradeReport_Files/
    _ReSharper.*/
    
    0 讨论(0)
  • 2020-12-28 20:00

    Just found this - https://github.com/github/gitignore

    Specifically this - https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

    0 讨论(0)
提交回复
热议问题