The difference between smart Checkout and force checkout

The code is modified in the develop branch, but there is no commit,
so this window pops up when switching to another branch. So how do we change it?
Insert picture description here
Insert picture description here
Insert picture description here
If you click force checkout, the local changes will be lost. Only use the following steps to retrieve the code (you need to check for errors or omissions after retrieval)

Right click in the project folder. Click local history->show history
Insert picture description here
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_40145879/article/details/112476888