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

Git Hooks

Git Hooks

417.72KI

May 21, 2019
Tweet

More Decks by 417.72KI

Other Decks in Programming

Transcript

  1. ϒϥϯν੾ସͰى͖Δ
    ͋Δ͋ΔΛղܾͯ͘͠ΕΔ
    (JU)PPLT

    ͋Δ͋Δ-5ʙεϚϗΞϓϦ։ൃΤϯδχΞʙ7PM

    View full-size slide

  2. struct Me {
    let name = "Takuhiro Muta"
    let aka = "417.72KI"
    let experienceYears = 5
    let company = "iRidge inc."
    let twitter = "417_72ki"
    let qiita = "417_72ki"
    let gitHub = "417-72KI"
    let like = [
    "BEMANI",
    "Real Escape Game",
    "Bang Dream!",
    "LoveLive! Sunshine!!",
    "etc…"
    ]
    }
    TFMGEFTDSJQUJPO

    View full-size slide

  3. ࣗ࡞πʔϧϥΠϒϥϦ
    w #VJME$POpHTXJGU
    w :".-+40/ʹ"1*IPTU౳ͷઃఆΛ֎ग़ͯ͠͠4XJGU
    ϑΝΠϧΛࣗಈੜ੒͢Δ$-*
    w IUUQTHJUIVCDPN,*#VJME$POpHTXJGU
    w .PDL6TFS%FGBVMUT
    w 6TFS%FGBVMUTΛςετ༻ʹϞοΫԽ͢ΔϥΠϒϥϦ
    w IUUQTHJUIVCDPN,*.PDL6TFS%FGBVMUT

    View full-size slide

  4. ͜Μͳܦݧ
    ͋Γ·ͤΜ͔ʁ

    View full-size slide

  5. ?P?
    ʻ13དྷͯΔʂϨϏϡʔͨ͠Ζʂ
    㵺㱿㵺
    ɻP ଴ͯΑɺͲΜͳײ͡Ͱಈ͘ͷ͔

    HJUDIFDLPVUͯ͠Ϗϧυͯ͠ΈΑ

    c9DPEFcᵎ ☋ʆ
    ᵊࡾ

    View full-size slide

  6. ◠㷩◠

    View full-size slide

  7. ◠㷩◠

    View full-size slide

  8. ‧‪‬‭⛺è䡢 Т
    䡢è⛺‭‬‪‧͏Θ͋͋͋͋͋͋

    View full-size slide

  9. ͳͥʁ
    w 9DPEF(FOΛ࢖͍ͬͯΔYDPEFQSPKϑΝΠϧ
    ΛHJUJHOPSF͍ͯ͠Δ৔߹
    w ϑΝΠϧ͕௥Ճ͞Ε͍ͯͯ΋

    ϓϩδΣΫτʹ൓ө͞Ε͍ͯͳ͍
    w 1PETΛHJUJHOPSF͍ͯ͠Δ৔߹
    w $PDPB1PETͰ࢖༻͢ΔϥΠϒϥϦ͕૿͑ͯ΋

    ϓϩδΣΫτʹ൓ө͞Ε͍ͯͳ͍

    View full-size slide

  10. ରԠࡦ
    w HJUDIFDLPVU͢Δ౓ʹ

    YDPEFHFOͱQPEJOTUBMMΛ૸ΒͤΔ

    View full-size slide

  11. ͜ΕຖճखಈͰ΍Δͷ
    μϧ͍

    View full-size slide

  12. ͦ͜Ͱ
    (JU)PPLT

    View full-size slide

  13. (JU)PPLT
    w (JUͷಛఆͷΞΫγϣϯʹରͯ͠εΫϦϓτΛୟ
    ͘࢓૊Έ
    w QSFDPNNJU
    w QPTUDIFDLPVU
    w FUD

    View full-size slide

  14. QPTUDIFDLPVU
    #!/bin/sh
    export LANG=en_US.UTF-8
    set -e
    echo 'Update submodules'
    git submodule update --init --recursive
    echo 'Update project'
    /usr/local/bin/mint run xcodegen
    ~/.rbenv/shims/pod install

    View full-size slide

  15. QPTUDIFDLPVUʹ
    ࣮ߦݖݶΛ෇͚Δ
    $ chmod +x .git/hooks/post-checkout

    View full-size slide

  16. HJUDIFDLPVUͷ౓ʹ
    YDPEFHFOͱQPEJOTUBMM͕
    ࣗಈͰ૸ΔΑ͏ʹͳͬͨ

    View full-size slide

  17. ஫ҙ఺
    w 4PVSDF5SFF౳ͷ(6*πʔϧΛ࢖͍ͬͯΔ৔߹͸
    1"5)͕ॻ͖׵͑ΒΕ͍ͯΔ͜ͱ͕͋Δ
    w εΫϦϓτ಺ͷίϚϯυ͸ϑϧύεͰॻ͍͓ͯ
    ͘ͱ҆৺͔΋

    View full-size slide

  18. VTSMPDBMCJO΋
    dSCFOW΋ແ͍ʂ

    View full-size slide

  19. ·ͱΊ
    w (JU)PPLTͷQPTUDIFDLPVUΛ࢖͏͜ͱͰ

    ϒϥϯν੾Γସ͑ͷ౓ʹൃੜ͢Δ࡞ۀΛࣗಈԽ
    Ͱ͖Δ
    w (JU)PPLTʹ͸ଞʹ΋৭ʑͳछྨ͕͋ΔͷͰ͓
    ࢼ͋͠Ε

    View full-size slide