Etckeeper: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
 
(11 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 17: Zeile 17:
 
PUSH_REMOTE="origin"
 
PUSH_REMOTE="origin"
 
</pre>
 
</pre>
=Go to the configuration directory.=
+
 
 +
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
 
*cd /etc
=Initialize etckeeper=
 
 
*etckeeper init
 
*etckeeper init
=Add the remote repository.=
 
 
*git remote add origin git@HOSTNAME:REPONAME
 
*git remote add origin git@HOSTNAME:REPONAME
=First commit.=
+
*etckeeper commit "Initial commit." (ACHTUNG: DIESEN BEFEHL NUR EINMALIG UND ZWAR BEI DER INITIALISIERUNG AUSFUEHREN.)
*etckeeper commit "Initial commit."
 
=Set the upstream and push.=
 
 
*git push -u origin master
 
*git push -u origin master
 +
 
=Handling=
 
=Handling=
 
*echo 8.8.4.4    google2 >> /etc/hosts
 
*echo 8.8.4.4    google2 >> /etc/hosts

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

Links