.gitignore NuGet exclude packages/ include packages/repositories.config

前端 未结 5 1717
离开以前
离开以前 2021-01-30 00:25

I\'m trying to create a .gitignore for a Visual Studio project that uses NuGet. It currently contains:

\\packages/*
!packages/repositories.config
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-30 01:05

    /packages/
    !packages/repositories.config
    

    You can also add a .gitignore in the packages folder:

    *
    !repositories.config
    !.gitignore
    

提交回复
热议问题