Git archive of repository with uncommitted changes

前端 未结 9 715
旧时难觅i
旧时难觅i 2021-02-01 18:31

How can I create an archive of the current repository including local uncommitted changes using git archive?

9条回答
  •  梦毁少年i
    2021-02-01 19:07

    Another solution with git ls-files :

    git ls-files -z | xargs -0 tar -czvf archive.tar.gz
    

提交回复
热议问题