error: Your local changes to the following files would be overwritten by checkout:
src/app/routes/datav/insurance/insurance.component.ts
Please commit your changes or stash them before you switch branches.
1.执行下面git命令
git status
git pull
git status pop
2.让代码库中的文件覆盖本地的
git reset --hard
git pull
3.重新建分支 切换到你新建的分支 提交你的代码