git之you can‘t overwrite the remote branch问题解决

218 阅读1分钟

        今天使用smartGit提交代码的时候出现这个错误,如图,

                       remote是远程的意思,branch是分支的意思,you can't overwrite the remote branch英文的意思是我的remote branch被移动位置了,应该选中edit下面的prefrences下面的allow modify pushed commits问题就完美解决了。