git 执行reset --hard回滚本地代码后,合并了其它分支内容,无法push?

git 执行reset --hard回滚本地代码后,合并了其它分支内容,无法push?
解决方法:
执行:git pull 远程地址/master.git 当前分支名。
执行后会自动将当前分支的远程分支内容合并到本地,如果没有冲突,则可以push了
posted @ 2023-06-21 15:55  我的小苹果  阅读(112)  评论(0)    收藏  举报