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

前端 未结 5 1677
离开以前
离开以前 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:06

    This works for me.

    #NuGet
    packages
    !packages/repositories.config
    

    (Same as @manojlds's answer except removed the star in the first line. That didn't work for me.)

提交回复
热议问题