Git development
 help / color / mirror / Atom feed
From: Adam Panayis <adam@movency.com>
To: git@vger.kernel.org
Subject: Strange branch merging.
Date: Thu, 12 Feb 2009 11:52:51 +0000	[thread overview]
Message-ID: <49940D93.6000204@movency.com> (raw)

Hi, I have just started using git and am having  a problem with 2 
branches appearing merged.

I have a local machine, on this I have 2 branches. The master and one 
named blah. My git repository is in the following location: /git/.git/

I have made changes to a file on the blah branch and committed these 
changes.

I checkout the master branch and as expected the changes are no longer 
there. I flip back to blah and I can see my changes. So far so good.

I then, on a remote machine use the pull command, the remote machine 
shows only the master branch as I have not asked it to pull blah. The 
command I use is as follows: git pull -v ssh://user@machine one/git/.git/

Once this is done I double check my branches and it shows I still only 
have the master. Perfect. However, when I check the file I edited on my 
local machine on the blah branch, the changes are there.

Am I fundamentally misunderstanding the correct usage of git? Is this 
result expected?

Thanks

             reply	other threads:[~2009-02-12 12:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 11:52 Adam Panayis [this message]
2009-02-12 12:27 ` Strange branch merging Pieter de Bie
2009-02-12 12:40   ` Adam Panayis
2009-02-12 12:42     ` Pieter de Bie
2009-02-12 12:59       ` Adam Panayis
2009-02-12 13:08 ` Sitaram Chamarty

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=49940D93.6000204@movency.com \
    --to=adam@movency.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