-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Add a simple backup command that commits the user's current time-tracker config directory (which includes data.json) and then pushes.
This should error if the config directory isn't set up as a git repository.
We should have simple documentation page for how to set up the config directory as a git repository.
Use this script as an example:
#!/bin/bash
# I run this with helpful `tb` alias:
# alias tb="cd $HOME/.config/time-tracker && ./backup.sh && cd -"
git add .
git commit -m "$(date +%Y-%m-%dT%H:%M:%SZ)"
git pushCreate a backup command with b alias.
This could be done in a very similar method to the edit command.
Metadata
Metadata
Assignees
Labels
No labels