git
こわくない Git from Kota Saito www.slideshare.net k.swd.cc
なんか知らない人がコミットしているというのがばれないように後で修正する。 rebaseの魔法を唱える $ git rebase -i HEAD~2 エディタが開いて、行頭に pick がついたリストが出てくるので、 修正対象を「edit」に修正して:wq。すると修正チャンス到来。 $ g…
基本はpull とあるブランチに対してAさんとBさんがそれぞれ作業をしてAさんがpushした。BさんはAさんの変更を取り込みつつもブランチにpush したい。pullしてみた。 $ git pull origin firstbranch:firstbranch remote: Counting objects: 1, done. remote: …
これはべんり。 git ls-files --others --exclude-standard | xargs git add ls-files → 管理しているファイルを見る --others → 追跡されていないファイルの一覧を表示 --exclude-standard → .gitignore にマッチするファイルを含めない xargs → 上記を「git…