From: ir0s <imirene@gmail.com>
To: git@vger.kernel.org
Subject: Local branch ahead of tracked remote branch but git push claims everything up-to-date
Date: Wed, 20 Aug 2008 13:26:09 -0700 (PDT) [thread overview]
Message-ID: <1219263969579-736663.post@n2.nabble.com> (raw)
Hello,
I've used git for quite some time now but haven't run into this kind of
issue before.
I created a new branch from a remote branch that me and another developer
share:
$ git checkout --track -b mybranch origin/remotebranch
I make some changes, commit them but then switch to another branch and do
some work there.
I return to checkout my new branch to do some work:
$ git checkout mybranch
Switched to branch "mybranch "
Your branch is ahead of the tracked remote branch 'origin/remotebranch' by 4
commits.
mybranch
Accurately, it has 4 commits that I haven't pushed yet. I try to push them
but I get the following:
$ git push origin remotebranch
Everything up-to-date
Any ideas? This is really strange. Clearly I have missing commits, my
teammate doesn't see those 4 when he pulls and yet I can't add them.
>From my git config:
[branch "mybranch"]
remote = origin
merge = refs/heads/remotebranch
--
View this message in context: http://n2.nabble.com/Local-branch-ahead-of-tracked-remote-branch-but-git-push-claims-everything-up-to-date-tp736663p736663.html
Sent from the git mailing list archive at Nabble.com.
next reply other threads:[~2008-08-20 20:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-20 20:26 ir0s [this message]
2008-08-20 20:37 ` Local branch ahead of tracked remote branch but git push claims everything up-to-date Alex Riesen
2008-08-20 20:40 ` Andreas Färber
2008-08-20 21:01 ` Avery Pennarun
2008-08-20 21:15 ` Junio C Hamano
2008-08-20 21:22 ` Avery Pennarun
2008-08-20 22:25 ` Daniel Barkalow
2008-08-20 22:46 ` Junio C Hamano
2008-08-21 15:35 ` ir0s
2008-08-21 16:22 ` Michael J Gruber
2008-08-21 16:53 ` ir0s
2008-08-22 14:09 ` Michael J Gruber
2008-08-21 16:55 ` ir0s
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1219263969579-736663.post@n2.nabble.com \
--to=imirene@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).