How to Restore a Tobesee Article with Git
November 29, 2026
Recover a Tobesee article and its list summary from Git history. Identify the save commit, undo the intended change, and verify the live result.
Restoring a Tobesee article is easiest when you can identify the save that introduced the problem. The original Markdown can contain the text you want, while the original article index can contain different wording for its list card. Review both before you undo a change. This guide takes you from a public symptom, such as the wrong summary, to a verified restore on the published site.
Find the files that explain the symptom
Start with the public URL. For /posts/managing-articles, the Markdown lives at data/md/managing-articles.md, and the matching entry in data/json/articles.json has that path. The Markdown holds the title, description, and body. The JSON entry supplies the list card's title and description. A description problem isolated to the card is a reason to check the index first.
An edit to an existing article in the Tobesee editor can save the Markdown and the corresponding index row together in a GitHub commit. Inspect that commit as a pair of changes. For example, a description update may appear at the top of the Markdown file and alongside the timestamp in its list entry. A body-only edit may change the Markdown and move the index entry's update timestamp while keeping its existing summary. Editing article summaries in Tobesee
Inspect the save and its parent
You need read access to the content repository to review the history and write access to publish the restoration. Begin with a clean checkout of the branch that serves Tobesee. The commands below use main, which is the branch for this site. Substitute the correct branch and article path for your own installation.
git fetch origin
git status --short
git log --oneline origin/main -- data/md/managing-articles.md
Read the commit message and check the actual change before deciding what to undo. A save message can contain the article title even when that title stayed the same. Replace the value below with the commit ID you found.
save_commit=REPLACE_WITH_THE_SAVE_COMMIT
article_file=data/md/managing-articles.md
article_index=data/json/articles.json
git show --stat "$save_commit"
git diff "${save_commit}^" "$save_commit" -- "$article_file" "$article_index"
The parent of the save is the last state before that change. Look at the old description in the Markdown and then at the old description in the matching index row. Keep those two values handy. If a card had its own shorter wording, copying the Markdown description into the editor will save that wording to both fields.
Choose a restoration based on later edits
A revert works well when the whole save should be undone and there are no later changes that need to be preserved in the same lines. It creates a new commit that reverses the earlier change, so the original save and the correction are both available in the branch history. First fast-forward your checkout to the current branch. Review the patch before pushing.
git switch main
git merge --ff-only origin/main
git revert --no-edit "$save_commit"
git show --stat HEAD
git show HEAD -- "$article_file" "$article_index"
If the patch undoes the intended change, push it through the normal process for your repository. A repository that requires review may use a pull request for the revert. GitHub's guide to reverting commits
If the article has received newer edits you want to keep, start from the current branch and restore the specific values. For an incorrect summary, replace the Markdown description and the description on the selected index entry with their respective original values. Leave later body edits in place. Keep the other rows of the index as they are on the current branch. If a revert stopped with conflicts and you decide to take this approach, use git revert --abort to return to the state before the attempt.
Review a targeted patch with git diff -- "$article_file" "$article_index". A change to a summary should leave the article path and publication date intact. Compare the selected index entry by its path, since titles can be edited and two articles may have similar names. If other entries show up in the diff, inspect why before staging the correction.
Verify what readers see after the restore
Reload the public article and its card on the article list. Compare each description with the corresponding value from the chosen revision. If you also restored body text, check the affected section on the page and verify the surrounding paragraphs and links. A successful push establishes that GitHub accepted the restoration. Seeing the expected card and article confirms the running site is serving it.
On the Cloudflare Workers deployment, Tobesee reads current content from GitHub when the integration is available and also has a copy of the content from its last build. If the two public surfaces still look older than the repository, verify the running site's GitHub connection and check the deployment before making another content edit. When releasing updated build snapshots, use the repository's usual deployment command and check both pages again.
Leave a short record of the original save and the restoration commit. Those two IDs let the next editor see exactly which wording was recovered and which later edits were kept.