undo Questions

7

Solved

Is there a way we can undo a SQL update query?
Cynara asked 1/2, 2010 at 16:56

2

Solved

I have an HTML input. When a user types in it, I've set up the 'input' event to handle updating the input to a filtered version of what the user typed (as well as updating selectionStart and select...
Illogic asked 9/10, 2021 at 2:34

14

Solved

I am trying to recover my work. I stupidly did git reset --hard, but before that I've done only get add . and didn't do git commit. Please help! Here is my log: MacBookPro:api user$ git status # O...
Berliner asked 10/9, 2011 at 19:28

14

Solved

I am trying to recover my work. I stupidly did git reset --hard, but before that I've done only get add . and didn't do git commit. Please help! Here is my log: MacBookPro:api user$ git status # O...
Corncrib asked 10/9, 2011 at 19:28

18

Solved

I'm trying to undo all changes since my last commit. I tried git reset --hard and git reset --hard HEAD after viewing this post. I responds with head is now at 18c3773... but when I look at my loca...
Diandrous asked 28/12, 2012 at 20:46

4

Solved

I often accidentally press Enter while typing in insert mode. To undo the accidental new line, I typically press Backspace several times, first to remove all the automatic indentation, and then, fi...
Nestor asked 12/2, 2013 at 8:49

2

Solved

In intellij 2022.1, I use Ctrl+Shift+R to bring up the Replace in Files window - it shows 100+ matches in 40+ files. The search string and the replace string differ in only one character, for examp...
Wickerwork asked 28/4, 2022 at 17:7

15

Solved

Given a change that has been committed using commit, and then reverted using revert, what is the best way to then undo that revert? Ideally, this should be done with a new commit, so as to not re-...
Suzy asked 4/1, 2012 at 13:59

20

Solved

How do I easily undo a git rebase? A lengthy manual method is: checkout the commit parent to both of the branches create and checkout a temporary branch cherry-pick all commits by hand reset the f...
Pericarditis asked 25/9, 2008 at 17:59

3

In emacs, I sometimes invoke call-last-kbd-macro by mistake. When undoing I would have expected undo to undo the entire effect of the keyboard macro atomically, but that does not happen. Instead I ...
Pomfrey asked 27/10, 2010 at 16:26

11

Solved

I managed to shoot myself in the foot this morning by doing the following: Started working on a change to my project Made a bunch of edits to a bunch of files Realized that my approach was all wr...
Resnatron asked 5/10, 2009 at 17:24

5

I just did an svn merge to merge changes from the trunk to a branch: $ svn merge -r328:HEAD file:///home/user/svn/repos/proj/trunk . --- Merging r388 through r500 into '.': A foo A bar C baz1 C ...
Belew asked 13/12, 2009 at 16:21

14

Solved

I accidentally amended my previous commit. The commit should have been separate to keep history of the changes I made to a particular file. Is there a way to undo that last commit? If I do somethi...
Intervention asked 22/9, 2009 at 9:56

27

Solved

How do I reset my local branch to be just like the branch on the remote repository? I tried: git reset --hard HEAD But git status claims I have modified files: On branch master Changes to be commi...
Hydropathy asked 27/10, 2009 at 0:27

27

Solved

How do I reset my local branch to be just like the branch on the remote repository? I tried: git reset --hard HEAD But git status claims I have modified files: On branch master Changes to be commi...
Atilt asked 27/10, 2009 at 0:27

38

Solved

I mistakenly added files to Git using the command: git add myfile.txt I have not yet run git commit. How do I undo this so that these changes will not be included in the commit?
Cloche asked 7/12, 2008 at 21:57

12

I have a textarea and a button. Clicking the button causes text to be inserted into the textarea. Is there a way to allow a user to press Ctrl/Cmd+z to undo the insertion of text and revert the te...
Softshoe asked 28/11, 2012 at 2:54

8

Solved

I did: git init git add . git rm -rf dirname Looking at other answsers, git reset --hard HEAD, git checkout -f and git reflog did not work, apparently because there is no HEAD to go back to, nor...
Pomander asked 10/3, 2012 at 5:14

2

I have a set of Word macro's that format documents that are sent to from an external source. Usually there are a lot of changes made to the document, all of which are recorded in the undo history, ...
Radarscope asked 12/2, 2013 at 11:58

13

Solved

In one of my development branches, I made some changes to my codebase. Before I was able to complete the features I was working on, I had to switch my current branch to master to demo some features...
Doris asked 2/4, 2013 at 18:56

10

Solved

What is the right way to undo a rename in git, like: git mv file1 file2
Flung asked 4/2, 2011 at 20:49

0

My team has configured ReSharper/Rider to automatically run code-cleanup every time we save. I save a lot, which means code-cleanup runs a lot. Every time I try to Ctrl+Z past a point where code-cl...
Homeroom asked 20/9, 2022 at 16:48

5

I tried to undo my commit in git. Is it dangerous to use git reset --hard HEAD~1? What is the difference between different options for git reset? Note: while HEAD is the current/latest commit, HEAD...
Guillermoguilloche asked 4/7, 2014 at 7:32

2

I have seeded a row of data to my table by editing db/seed.rb file and executing rake db:seed command. Unknowingly, I put some wrong information in to that row. So I want to remove the previously a...
Bolling asked 19/2, 2013 at 10:20

35

Solved

I accidentally ran git merge some_other_branch on my local master branch. I haven't pushed the changes to origin master. How do I undo the merge? After merging, git status says: # On branch master...
Spindly asked 5/3, 2010 at 19:24

© 2022 - 2025 — McMap. All rights reserved.