Bare repo

git init –bare ${HOME}/.config.git

# Init repo
git init --bare ${HOME}/gitlab/scripts.git

# Ignore all files except the ones you want to track
config config --local status.showUntrackedFiles no

# Add an alias to your .bashrc for convenience
echo "alias config='/usr/bin/git --git-dir=${HOME}/.config.git/ --work-tree=${HOME}'" >> ${HOME}/.bashrc

# Start using your repo to track your dotfiles
config add ~/.bashrc ~/.vimrc ...
Última modificación July 25, 2022: Enable Lunr.js offline search (58e0849)