git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Decoding git show-branch output

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 19, 2007, 22:17 UTC
Message-ID
<eorg06$f1o$1@sea.gmane.org>
In-Reply-To
<17841.13791.627478.602602@lisa.zopyra.com>
[Cc: git@vger.kernel.org]
Bill Lear wrote:
Show 5 quoted lines
> I'm not sure if this is sane: is it ok to clone the company repo,
> then push from that clone into a bare repo, then from there to
> the company one?  Is git doing some sort of weird, silent pseudo-merge
> that we don't understand, thus generated what appears to be a very
> tangled, albeit brief, history, when we examine it?
It is quite sane, I think, to use bare repositories as "gateways".
 
Show 9 quoted lines
> I have read about 8 documents on git, experimented with it
> extensively, and, at our company, I am arguably the "git expert"; I
> thought that I had done all of my work on my local repo's master
> branch, and only pushed from that branch up to our company repo.  Yet,
> qgit shows that one of my first commits (to fix a few simply typos in
> documentation) goes off onto another branch.  git-show-branch shows
> "[master~3^2~9] Fix a few typos" for this.  I'm very confused how this
> could have happened, and I want to ensure we are doing things in a way
> that is predictable...

Nether push nor fetch does do merges. What can do merges (if not in fast-forward case, i.e. in case where only one side did any changes), is pull (but it doesn;t do this silently). I suspect that pulling from different repositories (probably into different tracking branches, or without use of tracking branches) might be the culprit.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Bill LearNext: Junio C Hamano
Message 4 of 5 in “Decoding git show-branch output”
  1. Bill LearJan 19, 2007
  2. Santi BéjarJan 19, 2007
  3. Bill LearJan 19, 2007
  4. Jakub NarebskiJan 19, 2007
  5. Junio C HamanoJan 19, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.