Using git+dropbox together effectively? - Stack Overflow
cd /etc etckeeper init etckeeper commit "First commit" cd ~/Dropbox mkdir git cd git mkdir etc.git cd etc.git git init --bare cd /etc git remote add origin ~/Dropbox/git/etc.git git push origin mastercommit.dにgit pushを組み込む。
vi /etc/etckeeper/commit.d/60git-push
#!/bin/sh set -e if [ "$VCS" = git ] && [ -d .git ]; then if ! git push origin master; then echo "etckeeper warning: git push orign master failed" >&2 fi fi
0 件のコメント:
コメントを投稿