You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rebasing Staging with master results in a push/pull indicator #3254
I have rebased my staging branch with master and after merging the code from master to staging I am facing Pull/Push Origin requests seen in the attached photo.
Version
GitHub Desktop version: [1.0.7]
OS version: [windows 10]
Steps to Reproduce
Rebase branch Staging onto master
merge master into staging
pull/push staging
checkout master
5.you will see push/pull origin request
Expected behavior: No push/pull should be seen
Actual behavior: looking at the push/pull indicators
I have rebased my staging branch with master and after merging the code from master to staging I am facing Pull/Push Origin requests seen in the attached photo.
Could you also include the commands you ran here, so it's clear how you're rebasing branches to end up in this state?
This takes the current ref you are on (in this case, master) and rebases it on top of Staging, using the common ancestor commit for both refs as the base.
I was able to reproduce this by running a similar command against the desktop repo (after resolving many conflicts):
$ git checkout master
$ git rebase encodings-as-a-first-class-thing
...
$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 502 and 589 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
I believe Desktop is reporting the right numbers here for the branch, because rebasing master will rewrite the OIDs for commits which were already pushed, and Git will consider them distinct.
Whenever I'm doing rebasing I usually include both refs, to avoid this sort of confusion:
$ git rebase master Staging
This will rebase Staging on top of master, which may have been what you intended to do.
On Thu, Nov 9, 2017 at 9:58 PM, Brendan Forster ***@***.***> wrote:
@nomanAdfenix <https://github.com/nomanadfenix> I think the issue is this
step:
$ git rebase Staging
This takes the current ref you are on (in this case, master) and rebases
it *on top of Staging*, using the common ancestor commit for both refs as
the base.
I was able to reproduce this by running a similar command against the
desktop repo (after resolving many conflicts):
$ git checkout master
$ git rebase encodings-as-a-first-class-thing
...
$ git status
On branch master
Your branch and 'origin/master' have diverged,
and have 502 and 589 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
I believe Desktop is reporting the right numbers here for the branch,
because rebasing master will rewrite the OIDs for commits which were
already pushed, and Git will consider them distinct.
Whenever I'm doing rebasing I usually include both refs, to avoid this
sort of confusion:
$ git rebase master Staging
This will rebase Staging on top of master, which may have been what you
intended to do.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3254 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbB0AR2xAUmdZdKj3Buq0oTJ4jGU2Rn_ks5s02dzgaJpZM4QVCYw>
.
Activity
shiftkey commentedon Nov 7, 2017
@nomanAdfenix could you open the repository in a shell at the point where you see this count, run these two commands and attach the output?
It's hard to say what exactly is happening here, but let's see what Git is reporting about your
masterbranch and we can go from there...shiftkey commentedon Nov 7, 2017
Could you also include the commands you ran here, so it's clear how you're rebasing branches to end up in this state?
nomanAdfenix commentedon Nov 8, 2017
nomanAdfenix commentedon Nov 9, 2017
I am attaching the snapShots in order from 1-3. I hope it would help to figure out.
shiftkey commentedon Nov 9, 2017
@nomanAdfenix I think the issue is this step:
This takes the current ref you are on (in this case,
master) and rebases it on top ofStaging, using the common ancestor commit for both refs as the base.I was able to reproduce this by running a similar command against the
desktoprepo (after resolving many conflicts):I believe Desktop is reporting the right numbers here for the branch, because rebasing
masterwill rewrite the OIDs for commits which were already pushed, and Git will consider them distinct.Whenever I'm doing rebasing I usually include both refs, to avoid this sort of confusion:
This will rebase
Stagingon top ofmaster, which may have been what you intended to do.nomanAdfenix commentedon Nov 10, 2017