add readme
This commit is contained in:
parent
3b31536178
commit
b937fa4794
1 changed files with 30 additions and 0 deletions
30
.cfgstore/readme.txt
Normal file
30
.cfgstore/readme.txt
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Setup
|
||||
|
||||
git init --bare $HOME/.cfgstore
|
||||
alias cfg='/usr/bin/git --git-dir=$HOME/.cfgstore/ --work-tree=$HOME'
|
||||
cfg config --local status.showUntrackedFiles no
|
||||
funcsave cfg
|
||||
|
||||
|
||||
# Use
|
||||
|
||||
cfg add ~/.config/kitty
|
||||
cfg commit -m "add kitty config"
|
||||
cfg push
|
||||
|
||||
|
||||
# Restore (on new machine)
|
||||
|
||||
alias cfg='/usr/bin/git --git-dir=$HOME/.cfgstore/ --work-tree=$HOME'
|
||||
funcsave cfg
|
||||
git clone --bare git@github.com:fotonmoton/.dotfiles.git $HOME/.cfgstore
|
||||
echo ".cfgstore" >> .gitignore
|
||||
cfg config --local status.showUntrackedFiles no
|
||||
cfg checkout
|
||||
|
||||
|
||||
# Conflict resolution
|
||||
|
||||
mkdir -p .config-backup && \
|
||||
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
|
||||
xargs -I{} mv {} .config-backup/{}
|
Loading…
Reference in a new issue