git 执行reset --hard回滚本地代码后,合并了其它分支内容,无法push?
解决方法:
执行:git pull 远程地址/master.git 当前分支名。
执行后会自动将当前分支的远程分支内容合并到本地,如果没有冲突,则可以push了
git 执行reset --hard回滚本地代码后,合并了其它分支内容,无法push?
最新推荐文章于 2025-03-28 14:28:03 发布
git 执行reset --hard回滚本地代码后,合并了其它分支内容,无法push?
解决方法:
执行:git pull 远程地址/master.git 当前分支名。
执行后会自动将当前分支的远程分支内容合并到本地,如果没有冲突,则可以push了