From b8ee31a757e92a857e841e6c0a5e0691abd7e76a Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 24 Apr 2023 10:28:55 +0200 Subject: [PATCH] added instructions on existing repo --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index acd1c47..aac33c6 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,18 @@ dotf remote add origin @git.domain.tld/dotfiles.git dotf push ``` +# Adding new computer to existing dotfile repo +``` +mkdir $HOME/.dotfiles +alias dotf='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME' +dotf init +rm .inputrc +rm .bashrc +git remote add origin https://git.rre.nu/jonas/dotfiles.git +dotf fetch origin +dotf checkout main +``` + # To initialize my desktop run ```bash bash <(curl -sL https://git.rre.nu/jonas/dotfiles/raw/branch/master/bin/initDesktop)