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
git archive --format=zip --prefix=archived_files/ HEAD `git diff --name-only --diff-filter=ACMRTUXB <oldcommit> <newcommit>` -o archive.zip | |
# archived_files = 解凍したときにルートになるフォルダ名なので変更可能 |
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
// ========================================================== | |
// | |
// カスタムポストタイプ | |
// src: https://gist.github.com/naokazuterada/5556068 | |
// | |
// 〜 How to Use 〜 | |
// 1.これをそのまま、function.phpにコピー&ペースト | |
// 2.これ以降の"example"を(SublimeTextなら⌘Dで)全選択し、任意の名前に全置換 |