I put this here mostly because I forget how to do it and have to make multiple starts to get it right.
I keep my
so I have a fair bit of freedom to experiment.
If I mess things up beyond repair,
I can always
git reset --hard
to revert to the most recent snapshot.
I recommend you make a backup as well.
The first step pulls all transactions ending
as an archive.
Next, create a temporary file
containing the "Opening Balances"
for the period ending
adds a blank line before transactions start
to this file rather than overwrite it).
into our temporary file.
At this point,
we can move the
back atop the original transaction log.
If you mark items as
you might want to only close transactions that have cleared, use