Top "Undo" questions

Undo is a command in many computer programs.

Git pull into wrong branch

Myself and one other developer had been merging and pushing our work to a non-master branch called toolwork. That way, …

git branch undo pull
Design Pattern for Undo Engine

I'm writing a structural modeling tool for a civil enginering application. I have one huge model class representing the entire …

design-patterns undo
How do I implement a simple undo/redo for actions in java?

I've created an XML editor and I'm stuck at the last phase: adding undo/redo functionality. I've only got to …

java user-interface undo command-pattern
Undo git update-index --skip-worktree

A while ago I did this to ignore changes to a file tracked by git: git update-index --skip-worktree <file&…

git undo
How to abort a merge in mercurial?

I goofed up a merge. I'd like to revert then try again. Is there a way to revert a merge …

version-control mercurial merge dvcs undo
How can I undo my last git add/commit?

I edited a file and did: git add file.py git commit -m 'fixed bug' I then edited another file …

git repository commit undo
How do I revert a file to 'last checkin' state in Mercurial?

I have a hypothetical Mercurial repository on disc. I'm most of the way through creating a new feature, when I …

mercurial undo
How to handle touch outside the view in Android?

I've found implementation of "Undo Bar" used in Gmail application for Android. "UndoBar" is basically a View that is displayed …

android gmail undo
How is the undo tree used in Vim?

This answer says: Vim's undo/redo system is unbeatable. Type something, undo, type something else, and you can still get …

vim undo
Add files to SVN then delete before commit

I guess I was careless. I added a bunch of files to svn with svn add, then I saw a …

svn undo delete-file