今天在提交代码过程中出现了Your branch is ahead of 'origin/master' by 2 commits.提示,代码无法提交成功,
此时需要git reset --hard origin/master回退到上一次版本
今天在提交代码过程中出现了Your branch is ahead of 'origin/master' by 2 commits.提示,代码无法提交成功,
此时需要git reset --hard origin/master回退到上一次版本
转载于:https://www.cnblogs.com/shuai-ran/p/9700177.html