LoginSignup
11
13

More than 5 years have passed since last update.

コードを納品する流れ

Last updated at Posted at 2016-02-11

.DSファイルを消してzipに圧縮

WinArchiverを利用

参考
https://ideacloud.co.jp/dev/macwinzipper.html

差分ファイルの用意

gitが管理しているディレクトリ内でgit diff ID番号(納品したcommitの次)
差分ファイルが出るので、これだけを納品する。

bash
$ git diff ID番号 --name-only
public/css/menu.css
public/css/style.css
public/index.html

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


  • 追記(2016/02/15)

コメントでいただいた、git archiveコマンドを試してみたところ、便利だったので追記させていただきます。

bash
git diff ${COMMIT_ID} --name-only | xargs -I {} zip ${COMMIT_ID}.zip {} -x .DS_Store

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

11
13
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
11
13