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

Re: unseeking?

From
ZBZack Brown <zbrown@tumblerings.org>
Date
Apr 24, 2005, 18:01 UTC
Message-ID
<20050424180116.GC11094@tumblerings.org>
In-Reply-To
<Pine.LNX.4.21.0504241305370.30848-100000@iabervon.org>
On Sun, Apr 24, 2005 at 01:25:35PM -0400, Daniel Barkalow wrote:
Show 9 quoted lines
> On Sun, 24 Apr 2005, Petr Baudis wrote:
> 
> > Dear diary, on Sun, Apr 24, 2005 at 05:47:54PM CEST, I got a letter
> > where Zack Brown <zbrown@tumblerings.org> told me that...
> 
> > git fork seconddeveloper ../mygitdir
> 
> Doesn't that have to be from the first one to the second one (rather than
> the other way)?
That works a little better for me, but neither really works. If I do
git fork currdir newdir
I get

cat: .git/HEAD: No such file or directory Invalid id: grep: .git/remotes: No such file or directory /home/zbrown/git/git-pasky-0.6.2/gitfork.sh: line 41: .git/heads/mygitdir: No such file or directory cat: .git/HEAD: No such file or directory Invalid id: error: no access to SHA1 file directory fatal: invalid cache error: no access to SHA1 file directory fatal: cache corrupted Branch mygitdir ready in mygitdir3 with head

If I cd into mygitdir3, I see a .git directory, but no files. If I do a 'git pull', it asks me where to pull from, and I don't know what to tell it.

Show 8 quoted lines
> > > 4) fork, seek, tag, and track are a little mysterious to me. I can guess at what
> > > these things do in general, but the specifics are confusing, and the README is a
> > > little vague.
> > 
> > Try head git*.sh. ;-)
> 
> Which is to say, there are useful comments at the beginnings of the
> scripts. I.e., you really want "head `which gitfork.sh`"

I've looked at the scripts, but I don't find the comments specific enough. For instance, for gitfork.sh:

# Create a branch sharing the objects database. # Copyright (c) Petr Baudis, 2005 # # This script creates a new branch (or revives an unused old branch) # in a given directory, sharing the same objects database with the # branch in the current directory, and forking from it at the latest # commit (in the case of a new branch). You can use the name # of the branch as an ID in all the other branches sharing the # objects database. # # The new directory has a fresh checkout of the branch. # # Takes the desired branch name, its directory name, and potentially # the head commit ID (for new branch).

I'm sure this is all accurate information, but I'm still unclear about several points:

1) when I fork directory A into directory B, is A at all different from B
when the fork completes, and if so, how?
2) Are A and B altered by the forking process? i.e., is this an event that is
recorded in the repo, or is it just the equivalent of 'checking out' the repo?
3) What is the significance of a branch 'name'? Is this like a tag?
4) In normal work-flow, when would forks be created, as opposed to other ways
of getting a tree?

Thanks, Zack

Show 8 quoted lines
> 
> 	-Daniel
> *This .sig left intentionally blank*
> 
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
Zack Brown
Previous: Daniel BarkalowNext: Daniel Barkalow
Message 5 of 15 in “unseeking?”
  1. Zack BrownApr 24, 2005
  2. Petr BaudisApr 24, 2005
  3. Zack BrownApr 24, 2005
  4. Daniel BarkalowApr 24, 2005
  5. Zack BrownApr 24, 2005
  6. Daniel BarkalowApr 24, 2005
  7. Zack BrownApr 24, 2005
  8. Daniel BarkalowApr 24, 2005
  9. Zack BrownApr 25, 2005
  10. Daniel BarkalowApr 25, 2005
  11. Zack BrownApr 25, 2005
  12. Petr BaudisApr 26, 2005
  13. Zack BrownApr 26, 2005
  14. Petr BaudisApr 26, 2005
  15. Rename tracking, revisited (was: unseeking?)Kevin Smith, Apr 24, 2005

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.