Jun. 22, 2025
Tracking & Syncing my dotfiles!
.dotfiles or… (.)²files?
- Using Git + Github, & tracking dotfiles with an alias.
- … as mentioned on the ever-wise Arch Wiki.
# 1. Create a bare Git repo to track dotfiles
git init --bare ~/.dotfiles
# 2. Create an alias to simplify dotfiles management.
# Tells (/usr/bin/git) to link the git alias directory you just created to your real .config/
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# 3. Hide untracked files in ~/ from cluttering "git status"
dotfiles config status.showUntrackedFiles no
Setup & communicate with this repo via ssh
, authenticating with a local private key.