A backup repository for storing configuration files.
Clone the repo into a dotfiles directory:
git clone --bare https://github.com/Luis-Licea/dotfiles $HOME/.config/dotfiles/ --recurse-submodulesDefine the aliases in .bashrc or .zshrc to access repo from anywhere:
alias dotfiles="git --git-dir=$HOME/.config/dotfiles/ --work-tree=$HOME"
dotfiles config --local status.showUntrackedFiles no
alias dotfilesui="gitui -d $HOME/.config/dotfiles/ -w $HOME"A token is necessary for pushing changes.
dotfiles push -u origin master
# Username: <type your username>
# Password: <type your password or personal access token (GitHub)>Check Git configurations.
git config -lCheckout the content from the bare repository to '$HOME':
dotfiles checkoutView tracked files and changes that need to be committed:
dotfilesui- GPG keys in
$GNUPGHOME. - SQL databases.
- SSH keys.
- Unit files in
~/.config/systemd/user /etcfolder./home/<user>directory.