# Dura: Automatic Background Commits for Git Repository Recovery

DevFeed: [Dura: Automatic Background Commits for Git Repository Recovery](<https://devfeed.tech/articles/just-commit-more-33416.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2022/10/04/dura>)

Published: 2022-10-04T00:00:00Z

Content type: opinion

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [Nix](<https://devfeed.tech/topics/nix.md>)

Tags: [backup](<https://devfeed.tech/tags/backup.md>), [branch](<https://devfeed.tech/tags/branch.md>), [code-reviews](<https://devfeed.tech/tags/code-reviews.md>), [commit](<https://devfeed.tech/tags/commit.md>), [git](<https://devfeed.tech/tags/git.md>), [rust](<https://devfeed.tech/tags/rust.md>)

## AI overview

The author describes dura, a Rust tool that automatically makes background Git commits on a separate branch. The article explains how this creates a timestamp-ordered record of changes that can help recover abandoned work, resets, merges, and other difficult repository states.

## Source excerpt

Over new years this past year I made dura. It's like auto-backup for Git. It tries to stay out of the way until you're in a panic, trying to figure out how to rescue your repository from a thoughtless git reset --hard. It makes background commits, real Git commits that you don't normally have to see in the log, by committing to a different branch than the one you have checked out. Overall, it's been a blast. I've learned a lot from the contributors, like how to write well-formed Rust as well as a bit about Nix.