how to import stuff?

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

how to import stuff?

From: Ian Molton <spyro@f2s.com>
Date: 2016-06-15 22:42:17

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

Re: how to import stuff?

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:42:17

On Wed, Jan 25, 2006 at 11:40:39PM +0000, Ian Molton wrote:
git add . adds all the new files, but there seems to be no equivalent to 
remove files
That happens on commit without the need for any special command.

--b.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help