They would stay in git. You can remove them from tracking by update
.gitignore as you said, and I also do a "git rm --cached" just for
"safety" to remove them from the INDEX, but leave the files in the
working directory.

There is an example of using "git filter-branch" to totally remove a
file from every commit in a git repo.
The second example on page:


git filter-branch --index-filter 'git rm --cached --ignore-unmatch
filename' HEAD

I don't know if it is really necessary. It's only disk space. And
compressed. So, unless the files were large, why bother?

On Wed, Jan 2, 2013 at 11:47 AM, fpefpe <> wrote:
> Hello -- I realized  after-the-fact  that I should nave ignored some files at 
> the start of a project and new repo --  If I add these file name to the 
> .gitignore file  would files already tracked stay in the log/history and that 
> future add/commits would now  ignore those files?
> --

Maranatha! <><
John McKown


Reply via email to