3
1

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.

SourceTreeのターミナルから作業ツリー内の変更を全破棄、未追跡を全削除、メモ

Posted at

Unityをアップデートしたら差分が山ほど出た

全部を破棄しようとして作業ツリー内をたくさん選択すると
SourceTreeが固まるのでコマンドラインからクリーンする。
同じく未追跡のファイルを全部削除しようとして全選択してから削除しようとすると固まるので
コマンドラインからクリーンする。

こちらの記事を参考にしました。
https://awesome-linus.com/2019/05/13/git-clean-untracked-files-delete/

■ターミナルを開く
 SourceTreeを開く→メニューの右上のターミナルアイコンがあるのでクリック

■コマンドラインから破棄対象ファイルを全削除

git checkout .

■コマンドラインから未使用ファイルを全削除

git clean -df
3
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?