1
2

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 で(Modified Content)が出るとき

Posted at

TL;DR

cd (modified content)なディレクトリ
git checkout -- .

毎回忘れているので自分用のメモとして。

$git status
       :
	modified:   lib/ugfx (modified content)

対処

$cd lib/ugfx 
$git status で再度確認→ファイルごとの変更が出る
$git diff →ファイルごとの差分が出る
$git checkout — .
$git status でもう一度確認→変更なしになるはず
$cd ../..
$git status → (modified content) が消えているはず

参考

【Git】reset hardしても差分(modified content)が直らない場合 – GeekBox by ゆばたす

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?