threads / discuss / 13410

Removing from index

Subject: Removing from index

## tl;dr

4 messages between May 7, 2008 and May 7, 2008.

replies: 3people: 3as markdown or json

Ryan Taylor· May 7, 2008, 08:06 UTC · lore
Hi,

I've been a bit daft and told git to track a logs folder on my live box. So now I'm pushing and pulling log file between my live box and my dev box.

I've tried adding logs into my exclude file and also running the git rm command on *.log to remove them from the index but they're still being tracked?

I'm new to git. Can anyone shed any light?
Cheers
Ryan
Matthieu Moy· May 7, 2008, 08:17 UTC · re: Ryan Taylor · lore

Re: Removing from index

"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
> I've tried adding logs into my exclude file and also running the git rm
> command on *.log to remove them from the index but they're still being
> tracked?
What does "git status" say after "git rm *.log"?
Are you sure you didn't forget to commit after that?
-- 
Matthieu
Ryan Taylor· May 7, 2008, 08:41 UTC · re: Matthieu Moy · lore

RE: Removing from index

I do a rm then a commit. But then I keep getting modified logs in my git status?

-----Original Message-----
From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On
Behalf Of Matthieu Moy
Sent: 07 May 2008 09:17
To: Ryan Taylor
Cc: git@vger.kernel.org
Subject: Re: Removing from index
"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
> I've tried adding logs into my exclude file and also running the git
rm
> command on *.log to remove them from the index but they're still being
> tracked?
What does "git status" say after "git rm *.log"?
Are you sure you didn't forget to commit after that?
-- 
Matthieu
Jakub Narebski· May 7, 2008, 09:39 UTC · re: Ryan Taylor · lore

Re: Removing from index

Please do not toppost.
"Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
Show 13 quoted lines
> Matthieu Moy wrote
>> "Ryan Taylor" <ryan.taylor@leeds-art.ac.uk> writes:
>>> 
>>> I've tried adding logs into my exclude file and also running the
>>> git rm command on *.log to remove them from the index but they're
>>> still being tracked?
>> 
>> What does "git status" say after "git rm *.log"?
>> 
>> Are you sure you didn't forget to commit after that?
>
> I do a rm then a commit. But then I keep getting modified logs in my git
> status?

What are the names of the files you want to stop tracking? What is the entry in .gitignore or info/excludes file? What was the sequence of commands to remove them? What command did you try/use that returned unexpected output? What was that output, and what did you expect?

-- 
Jakub Narebski
Poland
ShadeHawk on #git

← back to recent threads