我目前正在进行(no branch)
未提交的更改。我想检查一个不同的分支并丢弃我所有的更改。
当我做
git checkout <branch_name>
我得到:
**error: Your local changes to the following files would be overwritten by checkout:
avar/libs/video_preprocessing_controller/video_preprocessing_controller.cpp
bbn/tracker/libs/init_and_cont_tracks/init_and_cont_tracks.cpp
Please, commit your changes or stash them before you can switch branches.
Aborting**
我不commit
想也不想stash
改变。我没有第三种选择吗?(忽略它们/扔掉它们)