added instructions on existing repo

This commit is contained in:
Jonas Forsberg 2023-04-24 10:28:55 +02:00
parent beaa8fff5b
commit b8ee31a757

View File

@ -49,6 +49,18 @@ dotf remote add origin <username>@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)