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

Re: Odd problem in repository

From
CWClark Williams <clark.williams@gmail.com>
Date
Apr 24, 2007, 17:53 UTC
Message-ID
<462E4403.4070708@gmail.com>
In-Reply-To
<20070424174828.GC5942@spearce.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Shawn O. Pearce wrote:
Show 9 quoted lines
> Clark Williams <clark.williams@gmail.com> wrote:
>> But, I'm still confused. After you clone the central repository, with
>> the new layout, why can't I 'mock checkout -f mock-0-6-branch'? Do I
>> need to further qualify it, or create a local branch from it?
> 
> I don't know what the mock command does...  but if you meant:
> 
> 	git checkout -f mock-0-6-branch
> 
Heh, yes that's what I meant.  :)
Show 12 quoted lines
> then you want to add the origin/ prefix to qualify it, as you want
> the branch from the origin remote.  That should cause your head to
> get detached however:
> 
> 	git checkout -f origin/mock-0-6-branch
> 
> at which point you aren't on any branch at all.  So you might
> want to make your own mock-0-6-branch starting at your origin's
> current version:
> 
> 	git checkout -f -b mock-0-6-branch origin/mock-0-6-branch
> 
Ah, I think that's what I was looking for.
Thanks,
Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGLkQDqA4JVb61b9cRAt8OAJ9sPWLuiA0n/WKO7EzYH40GhFN0ZgCfY6Mw J7m60FS67Rj4ESgnVNRfjl8= =iuic -----END PGP SIGNATURE-----

Previous: Shawn O. PearceNext: Jeffrey C. Ollie
Message 6 of 7 in “Odd problem in repository”
  1. Clark WilliamsApr 24, 2007
  2. Shawn O. PearceApr 24, 2007
  3. J. Bruce FieldsApr 24, 2007
  4. Clark WilliamsApr 24, 2007
  5. Shawn O. PearceApr 24, 2007
  6. Clark WilliamsApr 24, 2007
  7. Jeffrey C. OllieApr 24, 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.