| Thinker | says | 好長的指令.. |
| benlau (⊚‿‿⊚) | 用git就要習慣... |
| Thinker | says | git log --pretty=format:"%h" -1 # 我剛才試, 好像這樣就可以 |
| chihchun | says | 我前面多貼了一段 |
| chihchun | says | git archive --format zip -o $(git log --pretty=format:"%h" -1).zip HEAD # 要丟出去的程式碼就這樣 |
| Thinker | says | 用 hash 當 archive 檔名不太好, 因為對方會弄不清順序 |
| Thinker | says | 最好加上日期和時間 |
| Thinker | says | git archive --format zip -o $(date -r $(git log --pretty=format:"%ct" -1) +%Y%M%d%H)-$(git log --pretty=format:"%h" -1)..zip HEAD # 這樣可能比較好 |
| chihchun | says | git archive --format zip \ -o $(git log --date=short --pretty=format:"%ad-%h" -1).zip HEAD |
| chihchun | says | 那就更長一點了 |
| benlau (⊚‿‿⊚) | 弄個git-hash-archieve的shell script.. |
| Kanru™ | says | 要愛用 git alias |
| chihchun | says | git alias 可以讓我寫 shell script 嗎? |
| Kanru™ | says | git config alias.date-archive <your command>,以後就可用 git date-archive 了 |
© copyright 2007-2012 Plurk Search People Search Verified Account APIFAQ
Contact Us About Blog Jobs Terms Privacy
