# Initialization ```sh git init --bare $HOME/dotfiles alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc) source .zshenv dot config --local status.showUntrackedFiles no git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git git remote -v ``` # Usage ## Add or edit files in repository ```sh dot add /path/to/file dot commit -m "some message" dot push ``` ## move to a new computer ```sh cd alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc) source .bashrc echo "dotfiles" >> .gitignore git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles dot checkout cd dotfiles dot config --local status.showUntrackedFiles no ``` ## pull repository ```sh dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git dot pull origin master ```