Questions tagged [revert]

Revert generally refers to operations that put a system, environment, or application into a previous state.

Revert generally refers to operations that put a system, environment, or application into a previous state.

559 questions
104
votes
10 answers

Is there a way to recover from an accidental "svn revert"?

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 wrong, and that I needed to start over cd'd to the top…
Jeremy Friesner
  • 70,199
  • 15
  • 131
  • 234
89
votes
7 answers

How to PR and merge again after reverting PR using Github Revert Button

Basically I used Github revert button to revert a previous PR for a feature branch into master, then I decided to merge the same feature branch that I reverted earlier, but I was not able to do so. Steps as follow: PR to merge feature branch to…
Aboodred1
  • 1,353
  • 1
  • 10
  • 22
77
votes
3 answers

How to revert multiple commits as part of a single commit

This is not a major problem, just something I want to know whether or not is possible. Let's say we have two commits, abcd123 and wxyz789, that occur at non-adjacent, separate places, far back in a repo's history. Now let's say we want to revert…
JimmidyJoo
  • 10,503
  • 7
  • 27
  • 30
76
votes
14 answers

Roll back or revert entire svn repository to an older revision

I messed up on my SVN repository and now need to revert the entire repository from revision 28 to 24 and don't want to deal with diffs or conflicts. Is there a quick and simple way to do this? I've been able to revert back single files before fine…
user19302
67
votes
4 answers

Is there any way to undo the effects of "git revert head"?

I've accidentally run the command against the wrong branch in my repository - is there a way to undo this change?
blueberryfields
  • 45,910
  • 28
  • 89
  • 168
65
votes
6 answers

Reverting to a previous revision using TortoiseSVN

What is the easiest way to revert my working copy to a previous revision using Windows TortoiseSVN? I did not find any "findable" command to do that quickly.
Ricardo Alamino
  • 749
  • 1
  • 5
  • 11
64
votes
2 answers

Reverting specific commits from git

I have a git tree with a lot of commits and a lot of files. Now, I want to revert specific commits that touch a file only. To explain: > git init Initialized empty Git repository in /home/psankar/specific/.git/ > echo "File a" > a > git add a ; git…
Sankar
  • 6,192
  • 12
  • 65
  • 89
63
votes
9 answers

SVN/TortoiseSVN painfully slow

I'm experiencing painfully slow operations with one of our SVN repositories/projects. For example, it's taking 5-10 minutes to revert the changes in one small file (10 KB). Or about 40-60 minutes to check out the project of 100 MB. There are about…
Dan
  • 29,100
  • 43
  • 148
  • 207
57
votes
4 answers

Undo a git merge (hasn't been pushed yet)

I just committed some changes into one of my feature branches ("feedback_tab") then, checked out "master" and merged them in there. I actually meant to merge them into my "development" branch. Now, master is ahead of 'origin/master' (its remote) by…
Max Williams
  • 32,435
  • 31
  • 130
  • 197
54
votes
2 answers

git revert not allowed due to a merge but no -m option was given

I am trying to revert to a certain 'hash' number in git, by using the 'revert' command. I am using the following command: git revert c14609d74eec3ccebafc73fa875ec58445471765 But, I am getting the following returned: error: Commit…
user3544484
  • 761
  • 1
  • 9
  • 17
53
votes
3 answers

Reverse Apply a commit to working copy

In order to investigate the effect introduced by a previous commit, I want to reverse- apply it to my working copy and fiddle around with the code. I managed with a workflow around creating and applying a patch, but wonder if this can be done…
berkes
  • 26,996
  • 27
  • 115
  • 206
53
votes
2 answers

How do I revert a modified file using CVS?

I have checked out a file from CVS repository and changed it. cvs up command says that the file is modified M. I need to delete my changes. What cvs command can do it for me?
Ashot
  • 10,807
  • 14
  • 66
  • 117
52
votes
4 answers

TortoiseSVN - "revert changes from this revision" vs "revert to this revision"

The link: http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-rollback.html describes two ways of rolling back an SVN directory after a wrongful commit. What is the difference between the two options Revert changes from this…
Tahir Hassan
  • 5,715
  • 6
  • 45
  • 65
48
votes
4 answers

Git "revert" current directory

In Subversion (SVN), it's possible to do svn revert ./* in which the current directory and only the current directory gets reverted. What is the Git equivalent to svn revert in which only the current directory gets reverted? I know that there's git…
pillarOfLight
  • 8,592
  • 15
  • 60
  • 90
47
votes
2 answers

What is the meaning of revert this commit and roll back this commit in GitHub for Windows?

Github for Windows features these two commands described as: revert this commit - create a new commit that reverts the changes of this commit rollback this commit - roll back this commit leaving all changes made in this and later commits in your…
Zingam
  • 4,498
  • 6
  • 28
  • 48
1
2
3
37 38