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

Re: Newbie falls at first hurdle

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Sep 17, 2005, 16:30 UTC
Message-ID
<200509171730.19055.alan@chandlerfamily.org.uk>
In-Reply-To
<7vek7nbrk7.fsf@assigned-by-dhcp.cox.net>
On Saturday 17 Sep 2005 17:13, Junio C Hamano wrote:
> Alan Chandler <alan@chandlerfamily.org.uk> writes:
> We do not track 'directories'.  ...
>
>     $ find * ! -type d -print0 | xargs -0 git add
I did actually manage to create content with

find . -wholename './.git' -prune -o -wholename './.deployables' -prune -o \( -type f -print \) | xargs git-update-cache --add

and then commited it (with git commit)

The editor file that came up with this listed all the files it was going to commit INCLUDING some .files from the root directory (I am using eclipse, so I had files like .project and .classpath there). It says in the Documentation that git ignores those - has it done?

I then blew away (ie deleted) a couple of directories in my working tree and loaded them from an earlier backup and git diff HEAD showed the differences of the content of these new directories against the committed ones just fine. I then deleted these directories again and then attempted to check them out from the repository with

git checkout master
None of these directories has been created in my working directory.

Does this mean that I have to manually create the directory structure for the files to be checked into?

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “Newbie falls at first hurdle”
  1. Alan ChandlerSep 17, 2005
  2. Junio C HamanoSep 17, 2005
  3. Alan ChandlerSep 17, 2005
  4. Junio C HamanoSep 17, 2005
  5. Alan ChandlerSep 17, 2005
  6. Petr BaudisSep 18, 2005
  7. Junio C HamanoSep 18, 2005
  8. Improve git-update-index error reportingPetr Baudis, Sep 18, 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.