git只追踪特定类型的文件

比如我只关心所有office文档并排除掉~开头的辅助文件:

*
!*/
!*.docx
!*.doc
!*.xlsx
~*

猜你喜欢

转载自www.cnblogs.com/xiangnan/p/9563742.html