Open2

Gitコマンド

yutayuta

Gitの差分を確認する

# gitの状態を取得
git diff  ファイル名

# 例
git diff  app/Console/Kernel.php
yutayuta

Gitの変更を取り消す

# gitの状態を取得
git status

git checkout -- <ファイル名>
git checkout -- <ディレクトリ名>

# 全変更を取り消す
git checkout -- .