Created
February 5, 2013 18:02
-
-
Save zhovner/4716335 to your computer and use it in GitHub Desktop.
Revisions
-
zhovner created this gist
Feb 5, 2013 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # После установки etckeeper /etc/etckeeper/etckeeper.conf VCS="git" etckeeper init && etckeeper commit # ------ git config --global user.name "My Machine" git config --global user.email "etckeeper@my.machine" # ------ Создать приватный реп bitbucket.org добавить ssh ключ на сайте cd /etc && git remote add origin ssh://git@bitbucket.org/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