From e047d897fe9551c3b1c928e592fe0b64fd7bdc0a Mon Sep 17 00:00:00 2001 From: TiynGER <43725244+TiynGER@users.noreply.github.com> Date: Wed, 3 Jul 2019 17:21:46 +0200 Subject: [PATCH] Create README.md --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..57d6406 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# .dotfiles +My Arch Linux dotfiles. Most of them are personalized variants of the LARBS dotfiles files + +## Migration of my dotfiles to other system +set alias in .bashrc +```alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'``` +clone this repository +```git clone --bare https://github.com/TiynGER/.dotfiles $HOME/.dotfiles``` +checkout changes +```config checkout``` +backup old files +```mkdir -p .config-backup && \ +config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \ +xargs -I{} mv {} .config-backup/{}``` +checkout changes +```config checkout``` +set showUntrackedFiles to no +```config config --local status.showUntrackedFiles no``` +pull current setup +```config pull```