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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -