Remove all git files from a directory?

前端 未结 7 1638
不思量自难忘°
不思量自难忘° 2021-01-30 12:17

I have a folder under version control. I want to make a copy of it to send around, but don\'t want to include all the .git directories and the files underneath it.

Is

7条回答
  •  日久生厌
    2021-01-30 13:06

    You can use git-archive, for example:

    git archive master | bzip2 > project.tar.bz2
    

    Where master is the desired branch.

提交回复
热议问题