0
0

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 3 years have passed since last update.

【メモ】【Git】ローカル上の変更を取り消したい

Posted at

Gitをいじっていたらエラーから抜けられなくなってしまいました。
そんなときにとても便利だったコマンドをメモとして残しておきます。

##ローカル上の変更の取り消し
git checkoutでローカル上の変更を取り消すことができます。

% git checkout .

git clean -df .で新規ファイル等も削除できます。

% git clean -df .

###参考文献
Gitでいろいろ取り消したい

0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?