Created
February 5, 2013 18:02
-
-
Save zhovner/4716335 to your computer and use it in GitHub Desktop.
etckeeper setup with bitbucket repo
This file contains 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
# После установки etckeeper | |
/etc/etckeeper/etckeeper.conf VCS="git" | |
etckeeper init && etckeeper commit | |
# ------ | |
git config --global user.name "My Machine" | |
git config --global user.email "[email protected]" | |
# ------ | |
Создать приватный реп bitbucket.org | |
добавить ssh ключ на сайте | |
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
I did the above barring
Push fails, as expected, with:
What's the fix?