Last active
September 9, 2015 14:26
-
-
Save youthkee/ef64e9945effebe312b4 to your computer and use it in GitHub Desktop.
SourceTreeでコミット間の差分ファイルを圧縮しないで取り出す方法 ref: http://qiita.com/youthkee/items/8579c7a963c24bd4e655
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git checkout-index -f --prefix=archive/ $1 `git diff --name-only $1 $2` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
today=`date +"%Y%m%d"` | |
git checkout-index -f --prefix=../archive/$today/ $1 `git diff --name-only $1 $2` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git checkout-index -f --prefix=archive/ $1 `git diff --name-only $1 $2` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chmod +x export_diff.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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