Skillnad mellan versioner av "Etckeeper"
Från Charlottendal
Stig (Diskussion | bidrag) (Skapade sidan med 'Installera etckeeper med apt-get install etckeeper Kör etckeeper init & etckeeper commit Skapas lokalt repo med filer från /etc editera .gitignor i /etc efter behov Remote...') |
Stig (Diskussion | bidrag) m |
||
Rad 2: | Rad 2: | ||
Kör etckeeper init & etckeeper commit | Kör etckeeper init & etckeeper commit | ||
Skapas lokalt repo med filer från /etc | Skapas lokalt repo med filer från /etc | ||
− | editera .gitignor i /etc efter behov | + | editera .gitignor i /etc efter behov |
Remote repo | Remote repo | ||
Rad 11: | Rad 11: | ||
Konfigurerar git as root | Konfigurerar git as root | ||
− | git config --global push.default simple | + | git config --global push.default simple |
Skapa ssh-nyckel | Skapa ssh-nyckel | ||
− | ssh-keygen -t ed25519 -f ~/.ssh/id_gitlocal | + | ssh-keygen -t ed25519 -f ~/.ssh/id_gitlocal |
− | cat ~/.ssh/id_gitlocal.pub | + | cat ~/.ssh/id_gitlocal.pub |
− | emacs ~/.ssh/config | + | emacs ~/.ssh/config |
− | cd /etc | + | cd /etc |
− | emacs etckeeper/etckeeper.conf | + | emacs etckeeper/etckeeper.conf |
− | git branch -m master rasp1 | + | git branch -m master rasp1 |
− | git remote add etckeeper ssh://gitlocal/~/code/etckeeper | + | git remote add etckeeper ssh://gitlocal/~/code/etckeeper |
177 git push -u etckeeper master:rasp1 | 177 git push -u etckeeper master:rasp1 | ||
178 git push -u etckeeper :rasp1 | 178 git push -u etckeeper :rasp1 | ||
Rad 27: | Rad 27: | ||
184 git remote -v show etckeeper | 184 git remote -v show etckeeper | ||
− | etckeeper commit | + | etckeeper commit |
− | git | + | git push |
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Support]] | [[Category:Support]] | ||
[[Category:Git]] | [[Category:Git]] |
Versionen från 20 december 2016 kl. 11.12
Installera etckeeper med apt-get install etckeeper Kör etckeeper init & etckeeper commit Skapas lokalt repo med filer från /etc
editera .gitignor i /etc efter behov
Remote repo Skapa user git
sudo useradd -c "Git central repo user" -k /dev/null -m git Editera /etc/shells, lägg till /usr/bin/git-shell
sudo usermod -s /usr/bin/git-shell git
Konfigurerar git as root
git config --global push.default simple
Skapa ssh-nyckel
ssh-keygen -t ed25519 -f ~/.ssh/id_gitlocal cat ~/.ssh/id_gitlocal.pub emacs ~/.ssh/config
cd /etc emacs etckeeper/etckeeper.conf git branch -m master rasp1 git remote add etckeeper ssh://gitlocal/~/code/etckeeper 177 git push -u etckeeper master:rasp1 178 git push -u etckeeper :rasp1 179 git push -u etckeeper :rasp1 180 git push -u etckeeper HEAD:rasp1 184 git remote -v show etckeeper
etckeeper commit git push