LoginSignup
0
1

納品ファイルのつくりかたメモ

Posted at

自分用メモ

git diff から更新したファイル一覧をとって、まとめる

#  コミットID使わない
$ git archive --format=zip --prefix=_diff/ HEAD `git diff master --diff-filter=ACMR --name-only` -o _contents.zip

#  コミットID使う
$ git archive [コミットID2] `git diff --name-only [コミットID1] [コミットID2] --diff-filter=ACMR` -o archive.zip

更新したファイル一覧があって、そのファイルだけ別フォルダにコピーしたい

$ rsync -av --files-from=filelist.txt /source/directory/ /destination/directory/

Zip

$ zip xxx.zip -r xxx/ -x "*.DS_Store"
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