Git: How to ignore/specify files for *checkout*

前端 未结 5 1176
日久生厌
日久生厌 2021-02-13 02:56

If I don\'t want .html files tracked I can add the pattern to .gitignore and they\'ll be ignored. I\'d like to know how I can do the converse - at checkout, how could I ask git

5条回答
  •  佛祖请我去吃肉
    2021-02-13 03:23

    So I wanted to ship my code without the test files to the production server.

    Easiest way for me was just to remove all the test files with: rsync --exclude 'tests' after unpacking the archive.

提交回复
热议问题