git checkout newBranch
git status git add . git commit --amend git checkout newBranch
放弃本地修改,强制切换。
git checkout -f newBranch