$ sudo apt-get install etckeeper
etckeeper 側で push 先を設定
diff --git a/etckeeper/etckeeper.conf b/etckeeper/etckeeper.conf index f988c10..1fecf03 100644 --- a/etckeeper/etckeeper.conf +++ b/etckeeper/etckeeper.conf @@ -40,4 +40,4 @@ LOWLEVEL_PACKAGE_MANAGER=dpkg # To push each commit to a remote, put the name of the remote here. # (eg, "origin" for git). Space-separated lists of multiple remotes # also work (eg, "origin gitlab github" for git). -PUSH_REMOTE="" +PUSH_REMOTE="origin"
$ cd /etc $ sudo git remote add origin firstname.lastname@example.org:name/repo-name.git
$ sudo ls /root/.ssh/ known_hosts $ sudo ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): ...