0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitのArchiveで日本語ファイル名が文字化けするのを回避する

Last updated at Posted at 2018-01-26

目的

zipでArchiveすると日本語ファイル名が文字化けをするので何とかする。

git archive HEAD -o Archive.zip

環境

  • Windows7
  • git 2.13.0.windows.1

結果

tarにしてから7zでzipする。

git archive HEAD -o Archive.tar --prefix=Archive/
"C:\Program Files\Git\usr\bin\tar.exe" -xvf Archive.tar
"C:\Program Files\7-Zip\7z.exe" a Archive.zip ./Archive/
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?