Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Commit message will never die

Commit message will never die

Rails Developers Meetup 2018: day 1
(https://techplay.jp/event/639872)

Koichi ITO

March 24, 2018
Tweet

More Decks by Koichi ITO

Other Decks in Technology

Transcript

  1. 

  2. 

  3. 

  4. 

  5. 

  6. 

  7. 

  8. w ʮͲͷΑ͏ʹ )PX ʯ͸࣮૷ΛಡΊ ͹Θ͔Δ w ʮԿΛ 8IBU ʯ͸ίϛοτϝοηʔ δߦ໨ʹλΠτϧͱͯ͠ه͢

    w ʮͳͥ 8IZ ʯ͸ίϛοτϝοηʔ δߦ໨ͷຊจͱͯ͠ه͢ ຊจͰ͸ʮͲͷΑ͏ʹʯͰ͸ͳ͘ʮԿ ΛʯͱʮͳͥʯΛઆ໌͢Δ
  9. ϒϥϯν໊ͰߜΓࠐΉ alias cb=‘ git checkout ` git branch | peco

    | sed -e "s/\* //g" | awk "{print \$1}"`' IUUQTHJUIVCDPNLPJDEPUpMFTCMPCFECECGBCGCEPUTIHJUTI- ߜΓࠐΈ༻ ΤΠϦΞε
  10. XJQ@Ͱ࢝·Δϒϥϯν͸QVTIͰ͖ͳ͍ #!/bin/sh # if [ "$(git rev-parse --abbrev-ref HEAD |

    grep '^wip_')" ]; then echo "\033[0;31m[ABORT] You cannot push a branch whose prefix is \`wip_\`. \033[0;39m" 1>&2 exit 1 fi exit 0 IUUQTHJUIVCDPNLPJDEPUpMFTDPNNJUGCBCEEDEFGCCEFEGB HJUIPPLT QSFQVTI
  11. ίϝϯτͷจࣈΛ͔Βมߋ͢Δ % git config --global core.commentchar '^' ?ʹมߋ͢Δ w ΋ͪΖΜ?Ͱͳͯ͘΋ྑ͘ɺϓϥοτϑΥʔ

    ϜͰൺֱతߦ಄ʹ࢖Θͳͦ͞͏ͳ΋ͷΛબͿ w ྫ͑͹3VCZͩͱ΍!ͳͲ͸ίϛοτϝο ηʔδͰίʔυྫΛه͠͏ΔͷͰ࢖͑ͳ͍
  12. ίϝϯτͷจࣈΛ͔Βมߋ͢Δ diff --git a/dot.gitconfig b/dot.gitconfig index 07e3ef8..a95eae6 100644 --- a/dot.gitconfig

    +++ b/dot.gitconfig @@ -30,6 +30,7 @@ branch = auto interactive = auto [core] + commentchar = ^ editor = emacsclient -nw -a '' excludesfile = ~/.gitignore [diff] % git config --global core.commentchar '^' HJUDPOpH΁ͷ௥Ճ