I installed
etckeeper
on my ubuntu 11.10 server, and after creating the etckeeper repository with:etckeeper init etckeeper commit "Initial version"
I got the error:
bzr: ERROR: No changes to commit. Please 'bzr add' the files you want to commit, or use --unchanged to force an empty commit.
So I added a test file and then I could create the etckeeper repository:
touch /etc/test etckeeper commit "Initial version" rm /etc/test
But still there seems to be no git repository there:
cd /etc git status
How can I use git to watch changes?
Answer
I found out:
in the config-file etckeeper/etckeeper.conf
You have to set
VCS="git"
#VCS="bzr"
then again:
etckeeper init
etckeeper commit "Initial version"
Then everything works on git:
cd /etc
git status
Attribution
Source : Link , Question Author : rubo77 , Answer Author : rubo77