Dotfiles¶
I make use of a bare git repository for my dotfiles, which is a git repository without a working tree and copies of checked out files.
This results in the possibility to have a folder named ~/.dotfiles
, which keeps track of only my committed configuration files in my home folder, without any hacky symlinks.
Basically, this allows me to make my home folder a git repository, where I only keep track of checked in files, ignoring untracked files when using git commands.
I make use of a alias for managing the dotfiles
1 |
|
Example commands¶
Downloading the latest commit
1 |
|
Using a different branch for dotfiles
1 |
|
Add / edit files, then push commit to dotfiles repository
1 2 3 4 |
|
Use ssh instead of https¶
Ansible playbooks configures my dotfiles with https by default. Due to my new ssh key is not present in github during setup.
1 |
|