TortoiseGit 「Please commit your changes or stash them before you switch branches.」を解消する

TortoiseGit 「Please commit your changes or stash them before you switch branches.」を解消する

ブランチに変更時に、TortoiseGitで「Please commit your changes or stash them before you switch branches.」を解消する方法を記述してます。

環境

  • OS windows10 pro
  • git 2.30.1
  • TortoiseGit 2.11.0

エラー全文

ブランチに変更時に発生

原因

コミットしてない状態でブランチを変更しようとしたため

解消法

コミットしてあげる