search

Home  >  Q&A  >  body text

git archive 打包文件 中文乱码的问题

请看图片 我使用命令

git archive --format zip --output /home/hainuo/dump.zip master

打包后,发现都是乱码 怎么会事情?

++++++++++++

我使用了新的命令方式 @Larvata
git archive master > /home/hainuo/fds.zip
打包没法先如此问题

阿神阿神2824 days ago865

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-28 09:06:41

    Zip files have two ways to mark utf8 file names

    • general purpose bit flag
    • Info-ZIP Unicode Path Extra Field

    git archiveThe command uses the former
    I guess it’s a bug in the archive manager you’re using

    Change the decompression that comes with the system or try winrar

    reply
    0
  • Cancelreply