hledger/site/version-control.md

26 lines
571 B
Markdown
Raw Normal View History

# Track changes with version control
You don't need to do this, but it's a nice way to keep track of changes to your data.
## git
Start tracking changes:\
2017-01-27 02:25:06 +03:00
`git init && git add 2017.journal && git commit 2017.journal -m "first commit"`
View uncommitted changes: `git status`, `git diff`
Commit changes: `git commit 2017.journal -m "updates"`
View past commits: `git log`
## darcs
2017-01-27 02:25:06 +03:00
`darcs init && darcs add 2017.journal && darcs record 2017.journal -m "first commit"`
`darcs whatsnew`, `darcs diff`
`darcs record 2017.journal -m "updates"`
`darcs log`
## etc.