Git archive of repository with uncommitted changes

前端 未结 9 738
旧时难觅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条回答
  •  故里飘歌
    2021-02-01 19:12

    I'm using this command to export specify version to now (including uncommit changes file) changes by one line

    git archive -o /path/to/save/temp.zip $(git stash create) $(git diff --name-only xxx_version_to_start)
    

提交回复
热议问题