LoginSignup
0
1

More than 5 years have passed since last update.

git ちょっと便利な機能立ち

Posted at

超初心者向けの記事です。
ステータスや差分を見るときに便利なコマンドを覚えておこう。
その前に基本てきなフローは

git add
git commit

ですね。このコミットまでの流れで便利なコマンドを記載しておきます。

現状と次に何をすれば良いか教えてくれる

git status

コミットされているものと、カレントファイルの差分

git diff

ステージングエリアのファイルと、コミットされているファイルとの差分でgit add した後に差分を見るときに使う

git diff --cached

まとめてadd

git add .
0
1
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
0
1