Undo is a command in many computer programs. It erases the last change done to the document reverting it to an older state. In some more advanced programs such as graphic processing, undo will negate the last command done to the file being edited.
Questions tagged [undo]
854 questions
25
votes
3 answers
Building Undo Into an Excel VBA Macro
Excel macros do not seem to allow the use of "undo" after running them. Is there any way to bake undo functionality into a VBA macro in Excel?
Fred Nurke
25
votes
6 answers
25
votes
4 answers
Is fast (repeated) undo possible in emacs?
I use emacs and I have a problem with it's undo.
(Sorry, maybe this is a stupid question, but I did not find anything about it in the internet, whilst it should be a basic functionality of any editor).
To invoke each undo step I need to press…

Andrey Rubliov
- 1,359
- 2
- 17
- 24
24
votes
3 answers
How to undo a "Get Latest Version" on TFS
I'm using TFS with VS2008 and VS2010 and in the TFS collection I have several projects.
I've mapped the TFS root to a local drive to preserve the TFS folder structure and I've done a Get Latests of several subfolders.
I downloaded also an unwanted…

Ignacio Soler Garcia
- 21,122
- 31
- 128
- 207
23
votes
6 answers
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 few files added that I didn't want so I deleted them with rm.
Now I can't commit anymore because the commit is missing files. I tried svn cleanup but it didn't…

Eric
- 19,525
- 19
- 84
- 147
23
votes
1 answer
How can I undo, unsaved changes in VS Code?
Are there any shortcuts that allows a user to undo changes(similar to command+z) but back to when the file was last saved? I'm currently getting this done by closing files, discarding changes, and reopening them but this is tedious. Thanks!

tableguarder
- 365
- 1
- 3
- 8
23
votes
3 answers
Best design pattern for "undo" feature
Possible Duplicate:
Design Pattern for Undo Engine
In general, how do you deal with supporting an "undo" feature in your application? I have worked on web apps and desktop apps alike, and I have never really felt comfortable with any "undo"…

tenfour
- 36,141
- 15
- 83
- 142
22
votes
1 answer
Undo tag that's not pushed in Git
I've made a commit and a tag (using git tag -a -m ). I found out before I pushed that I needed to revert the commit so I used git revert --soft HEAD~. How do I also remove the tag? I've checked with git push --tags --dry-run that it hasn't been…

user16655
- 1,901
- 6
- 36
- 60
21
votes
3 answers
Undo an accidental hg strip?
I have accidentally run hg strip, and deleted a stack of commits. I have not done anything in the repo since. Is there a way for me to bring back this stack of commits, to undo the hg strip I just ran?

ChristianCuevas
- 2,672
- 3
- 19
- 24
21
votes
2 answers
Reset the undo stack in ACE editor
I want to reset the undo stack in an ACE editor. The behavior should be:
I do some changes in editor.
Call some magic function to reset the undo stack
When trying to undo, this will not be possible because the undo stack was reset.
I guess it has…

Ionică Bizău
- 109,027
- 88
- 289
- 474
21
votes
3 answers
Git Revert Not Working
So i've got a develop branch with a commit that I want to revert. So I type in git revert
But when it runs it says:
$ git revert 165702b305
On branch develop
nothing to commit, working directory clean
This commit has been tracked down…

Peter Foti
- 5,526
- 6
- 34
- 47
20
votes
3 answers
Intellij IDEA Cannot Undo
I am working on a project at Intellij IDEA. I moved refactored some packages. However I want to undo my changes. When I click revert button it says
Cannot Undo
and shows a list under that:
Following files affected by this action have been already…

kamaci
- 72,915
- 69
- 228
- 366
20
votes
4 answers
How do I restore a previous version as a new commit in Git?
First, I have seen the answer to this question here before, but it is buried by so many "answers" which don't answer my question properly, that I cannot find it again.
So here it goes: How do I restore in Git to a previous version in my history, so…

Steven Obua
- 934
- 1
- 8
- 17
19
votes
2 answers
Skip undo step in Vim
Let's say I'm at state A in my document. I then make changes B, C, and D (in order).
Is there a way I can keep changes B and D, but skip C?
Or, let's say I'm at state A in my document. I make change B, undo it, and then make changes C and D (so Vim…

Kevin Burke
- 61,194
- 76
- 188
- 305
19
votes
2 answers
Is there a block undo in VIM?
In Vim, is there a way to select a block of text and use undo to only undo changes to that block of text?
Let's say I rewrite a function, then go and make some changes elsewhere in my file. Afterwards, I realize that my first function implementation…

justin
- 1,147
- 1
- 8
- 17