Skip to content

drougge/etcgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Everyone keeps their /etc in git, right?

Naturally I made my own script for it. (Based on something I found somewhere.)
Works on FreeBSD, NetBSD, OpenBSD and Debian-, RedHat- and Alpine-likes.

Setup:
# cd /etc
# git init
# git config user.name root
# git config user.email "root@`hostname`"
# chmod 700 .git

You can add directories to DIRS to include them in the git repo. This
is done automatically for the package-/etc-dirs on FreeBSD and NetBSD.
If you do so core.worktree will be set to / and core.excludesFile will
be set to /etc/.git/etcgit.exclude which will contain everything that
was in "git status" after the first commit. Make sure that nothing
touches your $DIRS while the script is running the first time.

About

Everyone keeps their /etc in git, right?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages