My .dotfiles' backup using Gnu Stow.
You must have the following installed on your system:
It usually comes with Mac Os, otherwise install it with your preferred package manager. Apple also ships a binary package of Git with Xcode
Or any other package manager.
Brew (or Homebrew for that matter) can be installed by using the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Having brew installed, install GNU Stow:
brew install stow
Clone this project into your home folder, where the dotfiles would usually show up. Then just change the directory into the cloned repo and run stow to create the symlinks:
cd dotfiles-stow
stow .