-
-
Save niccottrell/6610307 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# After etckeeper installation | |
/etc/etckeeper/etckeeper.conf VCS="git" | |
etckeeper init && etckeeper commit | |
# ------ | |
git config --global user.name "My Machine" | |
git config --global user.email "[email protected]" | |
# ------ | |
# Create a private repo on bitbucket.org | |
# and add ssh key on the site | |
cd /etc && git remote add origin ssh://[email protected]/USERNAME/REPO-NAME.git | |
echo "git show --stat" > /etc/.git/hooks/post-commit | |
echo "git push origin master" >> /etc/.git/hooks/post-commit | |
chmod +x /etc/.git/hooks/post-commit | |
# ------ | |
крон /etc/cron.daily/etckeeper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment