Git: inverse ignoring (.gitignore)

前端 未结 3 512
孤独总比滥情好
孤独总比滥情好 2020-12-09 03:24

I created a repository for my home folder. This is my .gitignore file:

!.vim/plugin/*
!.vim/doc/*
.*
*
.viminfo
.vim/.netrwhist
.vim-fuf-data/fi         


        
3条回答
  •  春和景丽
    2020-12-09 04:11

    Try moving the negated lines (those starting with !) to the bottom of the .gitignore file.

    See the Examples section here

提交回复
热议问题