LoginSignup
39
39

More than 5 years have passed since last update.

Zach Holmanが Aloha RubyConf で紹介してた git 便利 tips

Last updated at Posted at 2012-12-26
  • git commit -m "LOOK AT ME TROLOLOLOL" --allow-empty
    でno diff commit出来る

  • git status -sb
    で色足してくれてメッセージも要らないのも省いてくれる

  • git config --global help.autocorrect 1
    git comitとかタイポしたときもcommitしてくれる

  • git config --global rerere.enabled 1
    大規模の時にconflictを対処するときになんか作業を覚えてくれるらしい

  • git commit --amend
    で最新のコミットに今の変更点を付け足せるらしい

  • git reset --soft HEAD^
    で最新のコミットをstaging状態に戻せる

  • git shortlog -sn
    で誰がいくらコミットしたかを一覧表示

紹介元

39
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
39