Thread (1 message) 1 message, 1 author, 2016-06-15

Re: branch ahead in commits but push claims all up to date

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:46:27

Irene Ros [off-list ref] writes:
Hi all,

I've been using git for some time now and haven't run into this issue
before, perhaps someone else here has:

I have a branch that is ahead of its origin by a few commits:

$ git status
# On branch myBranch
# Your branch is ahead of 'origin/myBranch' by 10 commits.

Oddly, when I try to do a push, I get a message saying that everything
is up to date:
$ git push origin myBranch
Everything up-to-date

Looking at the log for origin/myBranch I can tell those commits are
missing, but I can't push them up, even with a --force flag. Any
ideas?
Here's the config entry for this branch:

[branch "myBranch"]
    remote = origin
    merge = refs/heads/myBranch
How does your

	[remote "origin"]

part look like?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help