Skip to content

Instantly share code, notes, and snippets.

@youthkee
Last active September 9, 2015 14:26
Show Gist options
  • Save youthkee/ef64e9945effebe312b4 to your computer and use it in GitHub Desktop.
Save youthkee/ef64e9945effebe312b4 to your computer and use it in GitHub Desktop.
SourceTreeでコミット間の差分ファイルを圧縮しないで取り出す方法 ref: http://qiita.com/youthkee/items/8579c7a963c24bd4e655
#!/bin/sh
git checkout-index -f --prefix=archive/ $1 `git diff --name-only $1 $2`
#!/bin/sh
today=`date +"%Y%m%d"`
git checkout-index -f --prefix=../archive/$today/ $1 `git diff --name-only $1 $2`
#!/bin/sh
git checkout-index -f --prefix=archive/ $1 `git diff --name-only $1 $2`
chmod +x export_diff.sh
#!/bin/sh
today=`date +"%Y%m%d"`
git checkout-index -f --prefix=../archive/$today/ $1 `git diff --name-only $1 $2`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment