git - Local branch shown ahead of remote branch after rebasing -
every time rebase local branch, git status
shows this:
# on branch --blah-- # branch ahead of 'origin/--blah--' 11 commits.
only after push branch (which doesn't push actually) says everything up-to-date
.
this strange behavior, , suspect there fundamental i'm missing. why happening?
what git rebase origin/branch
put work on top of origin/branch
branch in local copy.
when have:
local_branch: 1--2--3--4--1'--2'--3' remote_branch: 1--2--3--4--a--b--c
then issuing git rebase remote_branch
end with
local_branch: 1--2--3--4--a--b--c--1'--2'--3' remote_branch: 1--2--3--4--a--b--c
which means local_branch indeed commits ahead of remote rebased on.
after git push
result in
local_branch: 1--2--3--4--a--b--c--1'--2'--3' remote_branch: 1--2--3--4--a--b--c--1'--2'--3'
so local up date
check out git-rebase doc
Comments
Post a Comment