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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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


to the end of


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

what am I doing wrong?

share|improve this question
up vote 9 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

Your Answer


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.