Make .gitignore ignore everything except a few files

前端 未结 23 2579
无人共我
无人共我 2020-11-22 00:14

I understand that a .gitignore file cloaks specified files from Git\'s version control. I have a project (LaTeX) that generates lots of extra files (.auth, .dvi, .pdf, logs,

23条回答
  •  甜味超标
    2020-11-22 00:45

    Nothing worked for me so far because I was trying to add one jar from lib.

    This did not worked:

    build/*
    !build/libs/*
    !build/libs/
    !build/libs/myjarfile.jar 
    

    This worked:

    build/*
    !build/libs
    

提交回复
热议问题