# About Git ## コマンド一覧 ### 初回のみ `$ git init` - リモートリポジトリを教える `$ git remote add origin <SSH Addr>` ### プログラムを変更したら - 差分の確認 `$ git diff` - ステージング `$ git add <FILE>` - 以下でもOK `$ git add -vA` : 変更・新規ファイル全て `$ git add .` : 全て(やや危険) - 間違えて `add` してしまったら、、 `$ git reset <FILE>` - 状態の確認 `$ git status` - commit `$ git commit` - 以下でもOK `$ git commit -m "<COMMIT MESSAGE>"` - push `$ git push origin HEAD` ### おまけ - コミットログ `$ git log` -