18

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?

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
rubo77
  • 27,777
  • 43
  • 130
  • 199

1 Answers1

17

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.

jofel
  • 26,513
  • 6
  • 65
  • 92