# Cursor: How I rollback multi-file changes

DevFeed: [Cursor: How I rollback multi-file changes](<https://devfeed.tech/articles/cursor-how-i-rollback-multi-file-changes-33442.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2024/10/25/cursor-dura>)

Published: 2024-10-25T00:00:00Z

Content type: opinion

Language: en

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

Topics: [cursor](<https://devfeed.tech/topics/cursor.md>), [Git](<https://devfeed.tech/topics/git.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [commit](<https://devfeed.tech/tags/commit.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [env-file-security](<https://devfeed.tech/tags/env-file-security.md>), [git](<https://devfeed.tech/tags/git.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [open-source](<https://devfeed.tech/tags/open-source.md>)

## AI overview

The article explains how the author's dura tool automatically creates Git commits on a hidden branch whenever watched files change, allowing users to roll back mistakes made during multi-file edits in Cursor. It covers installation and use on macOS, Windows, and Linux, and warns that commits may include sensitive or unwanted files such as databases and passwords.

## Source excerpt

Yay! Cursor is fun. All the way up until you accept some large multi-file change only to realize it was a mistake, but there's no simple way to rollback.