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

how to import stuff?

From
IMIan Molton <spyro@f2s.com>
Date
Jan 25, 2006, 23:40 UTC
Message-ID
<43D80C77.70207@f2s.com>
Hi.
I'd like to track the -mm tree in git.
I already have a linux git tree cloned from kernel.org, so I thought I'd try

git checkout -b v2.6.16-rc1 v2.6.16-rc1 git checkout -b v2.6.16-rc1-mm3 patch -Np1 < 2.6.16-rc1-mm3

So far so good - I have a tree with the patches applied
but then how do I add / remove new / deleted files?
git update-index --add --remove --refresh --ignore-missing

seems to generate a list of said files, but I cant seem to figure out how to get it to actually do anything useful with them.

git add . adds all the new files, but there seems to be no equivalent to remove files

and I really dont want to run git updat-index on *every single file* that changed by hand.

Surely Im missing something, but I cant see what for the life of me. The 
  'everyday git' document seems to focus on small changes to one or two 
files.

managing files not yet in or removed from the source isnt something effectively covered in the document (or if it is, I missed it somehow).

Its probably obvious that Im new to this kind of SCM - and I've not got on with SCMs generally... they never seem to be logical to me.

TIA!
-Ian
Next: J. Bruce Fields
Message 1 of 4 in “how to import stuff?”
  1. Ian MoltonJan 25, 2006
  2. J. Bruce FieldsJan 25, 2006
  3. Junio C HamanoJan 26, 2006
  4. Junio C HamanoJan 26, 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.