2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

今まで役に立ったGITコマンド

Last updated at Posted at 2016-07-06

Addした物をキャンセルする場合

$ git reset HEAD filename

コミットを取り消し

$ git reset --soft HEAD~2
$ git reset --hard HEAD~2

GitをAddした後に以前のソースと比べる(diff)

$ git diff --cached filename

コミットlogの表示

$ git log

コミット以外の物も含めてのlogの表示

$ git reflog

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?