Etckeeper: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
Zeile 19: Zeile 19:
  
 
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 "Test User"
+
  git config --global user.name "Username"
  git config --global user.email "tktest@example.com"
+
  git config --global user.email "user@domain.de"
 
  git config --global core.editor "vim"
 
  git config --global core.editor "vim"
 
  git config --global push.default simple
 
  git config --global push.default simple
  git config user.name "Test User"
+
  git config user.name "Username"
 
  git config push.default simple
 
  git config push.default simple
 
   
 
   

Version vom 23. März 2018, 09:56 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 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