Using Git to create an archive of changed files

后端 未结 3 508
醉梦人生
醉梦人生 2020-12-25 08:22

I am looking for a simple solution to make a archive of recent changed file.

I get this simple command from google

git archive -o update.zip HEAD $(g         


        
3条回答
  •  囚心锁ツ
    2020-12-25 08:59

    I use this alias to include new files not in HEAD:

    alias gittar='tar -czvf working-files.tgz \
                  $(git status -s | sed -r "s/..(.*)/\1 /")'
    

提交回复
热议问题