From 41f247b00d7166fe9c615013e5d192aff651c542 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Nov 2007 17:17:30 -0500 Subject: add an example of untracking a file --- README | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README b/README index 1adfaef..7ec20b2 100644 --- a/README +++ b/README @@ -86,7 +86,12 @@ further changes: git status git commit -a -m "changed a password" -Rinse, lather, repeat. +Rinse, lather, repeat. You might find that some files are changed by +daemons and shouldn't be tracked by git. These can be removed from git: + + git rm --cached printcap # modified by CUPS + echo printcap >> .gitignore + git commit -a -m "don't track printcap" etckeeper hooks into apt so changes to interesting files in /etc caused by installing or upgrading packages will automatically be committed. Here -- cgit v1.2.3