会社が当然のようにGit使っているので、忘れないようにメモっておく。
ユーザ設定と、見やすくするためカラー設定
$ git config --global user.name "foo" $ git config --global user.email "foo@bar.ne.jp" $ git config --global color.ui auto
クローン取得
$ git clone git://github.com/hoge/piyo.php
ブランチを切って、切り替わっているか確認
$ git checkout -b feature/*** $ git branch -va
~修正やらをして~
diff取って確認後、必要なファイルをステージングに上げる(statusを随時確認する)
$ git diff piyo.php $ git status $ git add piyo.php $ git status
コミット、コメントは1行目にタイトルで3行目に補足説明
$ git commit
プッシュ
$ git push origin feature/***
後はGitHub上でプルリクして終わり。