From ad7032294cebf2d2f01b919b5f0081cb3e725ff2 Mon Sep 17 00:00:00 2001 From: marc Date: Sat, 2 Nov 2019 11:24:12 +0100 Subject: [PATCH] expanded readme --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8ac4b4c..eb9b30b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ```sh git init --bare $HOME/dotfiles alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc) +source .zshenv dot config --local status.showUntrackedFiles no git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git git remote -v @@ -14,6 +15,17 @@ dot add /path/to/file dot commit -m "some message" dot push ``` +## move to a new computer +```sh +cd +alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc) +source .bashrc +echo "dotfiles" >> .gitignore +git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles +dot checkout +cd dotfiles +dot config --local status.showUntrackedFiles no +``` ## pull repository ```sh