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

Re: when is a remote a branch?

From
Petr Baudis <pasky@suse.cz>
Date
Nov 14, 2006, 20:44 UTC
Message-ID
<20061114204410.GK7201@pasky.or.cz>
In-Reply-To
<200611142136.17517.jnareb@gmail.com>
On Tue, Nov 14, 2006 at 09:36:16PM CET, Jakub Narebski wrote:
Show 22 quoted lines
> Petr "Pasky" Baudis wrote:
> > On Sun, Nov 12, 2006 at 06:31:18PM CET, Jakub Narebski wrote:
> >>
> >> By the way, with introduction of branches and remotes in config file,
> >> you can say:
> >>  [branch "localbranch"]
> >> 	remote = someremote
> >>  [remote "someremote"]
> >> 	fetch = remotebranch:localbranch
> >> 	push  = remotebranch:localbranch
> >> 
> >> and that would be equivalent to example branches file from
> >> the beginning of this email.
> > 
> > According to the documentation, this is not really useful since this
> > just tells what should git fetch default to when on branch
> > "localbranch". But "localbranch" is still just a branch representing a
> > state in a remote repository, so you should never be _on_ it in a sane
> > setup, but instead on a different branch which tracks it.
> 
> Oh. Can you "git fetch Localbranch" _without_ repository named 
> "localbranch" in above case?

So that it would be equivalent to git fetch someremote, and also fetch any other branches associated with that remote?

I would hope not. :-)
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
Previous: Jakub Narebski
Message 7 of 7 in “when is a remote a branch?”
  1. Anand KumriaNov 12, 2006
  2. Jakub NarebskiNov 12, 2006
  3. Petr BaudisNov 12, 2006
  4. Jakub NarebskiNov 12, 2006
  5. Petr BaudisNov 14, 2006
  6. Jakub NarebskiNov 14, 2006
  7. Petr BaudisNov 14, 2006

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.