第一种情况:
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