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 2022.19.03: hugo --minify (c53e62c)