aboutsummaryrefslogtreecommitdiffstats
path: root/readme.org
blob: 99cb95d7b948d88d589299093a1dc51e21cbc82d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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