Etckeeper: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Tina (Diskussion | Beiträge) |
|||
| (5 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt) | |||
| Zeile 18: | Zeile 18: | ||
</pre> | </pre> | ||
| − | folgende Befehle ausfuehren (ohne Email kommt es zu einem fatal error) | + | folgende Befehle ausfuehren (ohne Email kommt es zu einem fatal error) |
| − | + | *git config --global user.name "Username" | |
| − | + | *git config --global user.email "user@domain.de" | |
| + | *git config --global core.editor "vim" | ||
| + | *git config --global push.default simple | ||
| + | *git config user.name "Username" | ||
| + | *git config user.email "user@domain.de" | ||
| + | *git config push.default simple | ||
| + | |||
=Initialize etckeeper= | =Initialize etckeeper= | ||
Aktuelle Version vom 27. April 2018, 11:08 Uhr
Install
- apt-get install git etckeeper
ssh key to the git server
- ssh-copy-id git@caprica
Config
- /etc/etckeeper/etckeeper.conf
VCS="git" GIT_COMMIT_OPTIONS="" HG_COMMIT_OPTIONS="" BZR_COMMIT_OPTIONS="" DARCS_COMMIT_OPTIONS="-a" AVOID_DAILY_AUTOCOMMITS=1 AVOID_COMMIT_BEFORE_INSTALL=1 HIGHLEVEL_PACKAGE_MANAGER=apt LOWLEVEL_PACKAGE_MANAGER=dpkg PUSH_REMOTE="origin"
folgende Befehle ausfuehren (ohne Email kommt es zu einem fatal error)
- git config --global user.name "Username"
- git config --global user.email "user@domain.de"
- git config --global core.editor "vim"
- git config --global push.default simple
- git config user.name "Username"
- git config user.email "user@domain.de"
- git config push.default simple
Initialize etckeeper
- cd /etc
- etckeeper init
- git remote add origin git@HOSTNAME:REPONAME
- etckeeper commit "Initial commit." (ACHTUNG: DIESEN BEFEHL NUR EINMALIG UND ZWAR BEI DER INITIALISIERUNG AUSFUEHREN.)
- git push -u origin master
Handling
- echo 8.8.4.4 google2 >> /etc/hosts
- git commit -a -m hosts
- git push