From b686013cc9ba58bac298afaa790722b7c653f774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sun, 9 Aug 2020 11:39:21 +0200 Subject: Starting guide for dotfiles --- readme.org | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 readme.org diff --git a/readme.org b/readme.org new file mode 100644 index 0000000..99cb95d --- /dev/null +++ b/readme.org @@ -0,0 +1,17 @@ +#+TITLE: Managing my dotfiles + +* Installation +** From Scratch +Create a new directory that will hold the files. It will create only the +bare repo on the =git-dir= path. Yet, it is *not* a bare repo. It only has +the folder structure of it. This is made on purpose so that I don't mess up +trying to edit that folder. The =work-tree= is a link back to the home +directory. +#+begin_src bash +git --git-dir $HOME/dev/dotfiles --work-tree $HOME init +#+end_src + +Configure the link back to the main repository. +#+begin_src bash +echo "gitdir: $HOME/dev/dotfiles" > $HOME/.git +#+end_src -- cgit v1.2.3