LoginSignup
4
3

More than 5 years have passed since last update.

コードの納品

Last updated at Posted at 2017-03-13

差分なし(初回)

.DSファイルを含めずカレントディレクトリ以下をzipに圧縮

zipper ${FILE_NAME}

.zshrcに登録
function zipper() {
    zip -r $@.zip * -x *.DS_Store
}

WinArchiverでまとめてもよい
https://ideacloud.co.jp/dev/macwinzipper.html

差分あり(2回目以降)

差分ファイルの用意

gitが管理しているディレクトリ内で git diff ${COMMIT_ID}(納品したcommitの次)

差分ファイルを確認
$ git diff ${COMMIT_ID} --name-only
public/css/menu.css
public/css/style.css
public/index.html

参考
http://qiita.com/imai/items/09b8a72e5f8c34b432e8

.DSファイルを含めずカレントディレクトリ以下の差分をzipに圧縮

めんどくさいのでこっちだけでいい。

diffzip ${COMMIT_ID} ${FILE_NAME}

.zshrcに登録
function diffzip(){
    git diff $1 --name-only | xargs -I {} zip $2.zip {} -x .DS_Store
}

参考
git-archive Documentation
git archive 使い方
gitで差分ファイルを抽出する

4
3
1

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
4
3