Error when changing to master branch: my local changes would be overwritten by checkout

后端 未结 6 1981
难免孤独
难免孤独 2020-11-30 19:20

This question is similar to this one, but more specific.

I have a project with two branches (staging and beta).

I develop

6条回答
  •  囚心锁ツ
    2020-11-30 20:03

    You can force checkout your branch, if you do not want to commit your local changes.

    git checkout -f branch_name
    

提交回复
热议问题