git-journal v1.1.1
git-journal
Personal journal managed by Git.
Introduction
git-journal is a tool for taking journal entries. git-journal uses git for storing the journal entries.
Installation
$ npm install -g git-journalDependency
git-journal requires you to have git and nodejs installed on your local system. Also make sure that the git command is accessible.
Usage
Make sure you install
git-journalglobally as mentioned in the above installation scripts. This is to ensure thatgit-journalis available throughout your system.Open a terminal and run
git-journalEnter command
helpto get a list of all available commands.Please note if you are using the
backupandrestorefeature, make sure you read this section.
Commands
The commands that are currently supported are:
backup <git_remote_url> EXPERIMENTAL - create a backup of all your journals to your remote git repository.
create - create a new journal.
delete <journal_id> - delete a journal with id: <journal_id>.
deleteall - delete all journal entries.
exit - exit the git-journal application.
get <journal_id> - get a journal with id: <journal_id>.
getall - get all journal entries.
help - lists help information.
resetapp - deletes the data folder containing all the journals and resets the application to its default. (Needs restart)
restore <git_remote_url> EXPERIMENTAL - restore all the journals from your remote git repository to your local journals repository.
Backup and Restore
Follow these steps to use backup and restore features.
Create a remote git repository called
git-journals-data.It is always recommended to run the
restorecommand whenever you opengit-journalas any local change creates commits and a later execution ofbackuporrestorecommands may result in conflicts which then have to be resolved manually as per the current version ofgit-journal.Enter your git user id and password if you are being prompted in any of these commands.
After every
backupoperation, you can check your remote repository for all the commits that were made during the application usage. Notice there will be 'empty commits' for the backup operations. This is because the backup operation itself does not make any file changes, instead an empty commit helps keep better track of all your backups.Please note these are experimental commands and might be buggy. Feel free to raise issues with proper steps to reproduce them in the issues page of
git-journal.