第一种情况:
qydeMacBook-Pro:testPro qy$
git status
On branch test_all
Your branch is ahead of 'origin/test_all' by 3 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
qydeMacBook-Pro:testPro qy$
git rebase origin/test_all
First, rewinding head to replay your work on top of it...
Applying: adjust file1
qydeMacBook-Pro:testPro qy$
git push
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (8/8), 783 bytes

本文转自博客园,解释了Git中遇到'Your branch is ahead of 'origin/master' by 3 commits'提示的含义,介绍了如何处理这种本地分支与远程分支有差异的情况。
最低0.47元/天 解锁文章
2663

被折叠的 条评论
为什么被折叠?



