bash script to automagically track, backup and restore dotfiles specified in a config file
- to download the repository, run the following code:
cd $(mktemp -d) || exit 1
git clone https://github.com/daniele821/dotfiles
cd dotfiles || exit 1
- to restore a backup, go to the branch you want (
git switch <branch_name>
), then run the following code:
./autosaver restore
./autosaver run
- to create a new backup, it's suggested to use the
init
branch:
git switch init
- then create a new branch:
git checkout -b <branch_name>