Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use etckeeper for changes in my configfiles (on debian squeeze)

Since I also have an ircdeamon running, there are some files, that change every minute in the folder

/etc/hybserv/

I don't want to version control them anymore, so i added

hybserv/*

to the end of

/etc/.gitignore

but they are not ignored! They keep showing up every hour in the hourly commit.

what am I doing wrong?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

You need to delete (=unregister) them from git.

Use something like

cd /etc
git rm --cached hybserv/*
git commit -m "Remove hybserv/* files from git"

Note the --cached option. With it, the files are only removed from git and are not deleted from the disk.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.