例1
|
1 |
git archive --format=tar.gz --prefix=FOO/ HEAD -o foo.tar.gz |
例2
|
1 |
git archive --format=zip --prefix=BAR-1_4_0/ v1.4.0 -o bar.zip |
--prefix- 指定したディレクトリ以下にアーカイブファイルを配置する
archiveから除外するファイルの設定方法
.gitignoreなどアーカイブファイル(tar.gzやzip)から除外したいファイルの設定方法
⇒ .gitattributesにignore-exportを追記する
.gitattributesの記述例
|
1 2 |
.gitignore export-ignore .gitattributes export-ignore |