当前处于分支A,修改了部分文件,但本来是应该在分支B上修改的解决方法: git stash切换到分支Bgit stash popgit add ./*git commit -m “message”git push