1.2.0
Klipper-Backup now offers a documentation.
- pushing empty commits so that you can see that the script is actually running in the background
- more than one word is now possible as an optional commit name. For example, you can now push
./script.sh my new commit
wheremy new commit
is the commit name - improved git pull --rebase so that conflicts are merged without manual intervention needed, added a check that ensures git pull does trying to pull from a remote repo with no existing commit/branch history
- now it properly checks for a remote repo before pulling
- Reordered some actions for proper pull/push. Script will now pull any changes to the local branch first (should prevent any need for rebase or merge), then copy the backup to the repository folder, add and commit the backup's files, then push it back to the remote repository
- make user.email more unique to keep issue #34 from occuring (#35)
- The script now checks whether the
$branch_name
or the$repository
has been changed before pushing, adjusts it if necessary and then pushes to prevent errors