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

さいきょうの.gitconfig

ama-ch
November 21, 2012

 さいきょうの.gitconfig

社内で開催された天下一.gitconfig大会の資料です。

スライド最後の参考URLはこちらにも貼っておきます。
ドットファイル(https://github.com/ama-ch/dotfiles)
oh-my-zshとhomesickを使ってdotfilesをGitHubで管理するようにした(http://ama-ch.hatenablog.com/entry/2012/09/23/201217)

ama-ch

November 21, 2012
Tweet

More Decks by ama-ch

Other Decks in Programming

Transcript

  1. Α͘࢖͏aliasᶃ gc => git commit -v gco => git checkout

    gba => git branch -a ga => git add gm => git merge
  2. Α͘࢖͏aliasᶄ gf => get fetch gup => git fetch &&

    git rebase ggpush => git push origin $(current_branch) grh => git reset HEAD grhh => git reset HEAD --hard
  3. Α͘࢖͏aliasᶅ gl => git l => log --graph --(ུ) gd

    => git diff gdc => git diff --cached gr => git rebase
  4. Α͘࢖͏aliasᶆ gs => git status --status --branch gsd => gs

    + git diff gsa => gs + git add gsco => gs + git checkout gsrh => gs + git reset HEAD
  5. Πϯετʔϧ $ gem install homesick Ϋϩʔϯ $ homesick clone ama-ch/dotfiles

    γϯϘϦοΫϦϯΫ࡞੒ $ homesick symlink ama-ch/dotfiles ߋ৽ $ homesick pull ama-ch/dotfiles