git-revert Questions
4
Solved
I know that you can revert back to a previous commit but it doesn't sound like the history will be gone. How can I revert back to a previous commit and make sure the commits that came after are gon...
Shorthand asked 17/12, 2020 at 23:40
5
Solved
Hey I'm new to git and I need to undo a pull, can anyone help?!? So what I've done is...
git commit
git stash
git pull --rebase
git stash pop
this created a bunch of conflicts and went a bit wr...
Chalcocite asked 6/2, 2010 at 13:28
4
Solved
I'm working with a repository where a merge was performed weeks ago which we just discovered used the --strategy=ours flag (it was supposed to use the --strategy-option=ours flag), thus not applyin...
Fattish asked 8/1, 2013 at 23:26
4
I use Git, and I know that:
git revert <hash-code>
is used to create a new commit that will be identical to the past commit in the hash-code.
For example, I have the following commits:
1f74a...
Trigger asked 18/9, 2017 at 8:45
3
Solved
I had a feature branch created, let's say feature/branch1 on github.
I created a pull request for it and got it merged.
When it reached our pipeline, we figured there was a problem and we got it...
Verisimilitude asked 5/4, 2017 at 4:22
18
Solved
I have a Git repository that looks like this:
A <- B <- C <- D <- HEAD
I want the head of the branch to point to A, i.e., I want B, C, D, and HEAD to disappear and I want head to be sy...
Seriatim asked 23/9, 2009 at 0:27
4
Solved
When trying to revert a specific commit in git, I'm getting this error:
$ git revert aaaf93201a28a57d540d633b1b723b8e513a47ed
error: Reverting is not possible because you have unmerged files.
hint...
Wernsman asked 8/1, 2018 at 13:44
9
Solved
I have run into a bit of a problem here: I had a problem-specific branch 28s in Git, that I merged in the general develop branch. Turns out I had done it too fast, so I used git-revert to undo the ...
Landin asked 3/7, 2009 at 7:15
7
Solved
I'm learning how to use git these days and I had to do many hit-and-misses. Thus I needed to delete and create anew my remote and local repos. Is there a way to roll back to the first commit of the...
Cosette asked 11/5, 2013 at 17:32
6
Solved
I accidentally removed the entire directory of my source code...with a nice rm -r. I know, really bad; but fortunately, I had a git repo in the containing directory. Thus, git has a huge list of un...
Schnurr asked 23/7, 2014 at 13:28
13
Solved
How can I go about rolling back to a specific commit in git?
The best answer someone could give me was to use git revert X times until I reach the desired commit.
So let's say I want to revert b...
Alphonsoalphonsus asked 5/1, 2010 at 17:1
6
Solved
Steps I performed:
I have two branches branch1 and branch2,
$git branch --Initial state
$branch1
$git checkout branch2
$git pull origin branch1 --Step1
I resolve the conflicts and did a
$git comm...
Jabber asked 21/9, 2012 at 16:20
3
I have reverted a pull request from GitHub by following this article https://help.github.com/articles/reverting-a-pull-request/. Now even after reverting when I am comparing the two branch it shows...
Vish asked 20/3, 2018 at 13:56
6
Solved
Is there a way to revert an old commit without changing the files in the working directory?
I made a commit a while back, but the code that I committed wasn't ready and I want those changes to stay...
Eniwetok asked 14/6, 2016 at 21:52
4
Solved
I am trying to revert to an earlier git commit but get the error "bad revision". Why?
Here is a transcript (with author names removed):
Ellen@ELLEN-PC /c/Users/Susan Mills/git/hello-github (maste...
Chemaram asked 6/2, 2014 at 16:25
6
Solved
I am building a new app in Symfony 2.1. I am using a lot of bundles pulled in using composer. A lot of these bundles have problems with this latest version of Symfony and I am having to go into the...
Spoonfeed asked 6/6, 2012 at 14:23
1
I have a dev branch which already merged with branches featureA and featureB.
I merged that dev branch to master and pushed to remote. Later I identified featureB is not yet ready to merge with mas...
Revetment asked 25/9, 2018 at 11:7
3
Solved
I was going to test something in dev branch (just a version number 0.1 --> 0.2), so I committed the change but I don't have the permission to push it to dev directly,then I created a feature bra...
Osmanli asked 16/9, 2020 at 16:9
3
Solved
While trying to revert a commit I made to my repository of my .emacs.d folder I get the following message:
haziz@haziz> git revert 7fe3f
error: could not revert 7fe3f0b... .emacs.d contents fr...
Bush asked 26/11, 2011 at 21:35
3
Solved
This has to be simple, but I can't find it in git-scm.
I've been making a lot of small commits to a public project, and all of my work is bad. I want to remove everything that I've done. Some I've...
Stancil asked 16/12, 2013 at 5:37
1
I have reviewed multiple similar questions and responses that haven't worked for my situation.
Most recently, "Github does not recognize…" in 2017
I have the situation that
branch A ->...
Slashing asked 3/9, 2021 at 22:35
7
Solved
I am trying to learn how to restore or rollback files and projects to a prior state, and don't understand the difference between git revert, checkout, and reset. Why are there 3 different commands ...
Zofiazoha asked 2/12, 2011 at 13:37
5
Solved
I have a branch A and a branch B (and some other branches).
Lets say A's commit history looks like:
commit 5
commit 4
commit 3
...
And B's commit history:
some other commit
commit 4
merge of...
Barred asked 27/2, 2015 at 21:1
8
Solved
In Git, I was trying to do a squash commit by merging in another branch and then resetting HEAD to the previous place via:
git reset origin/master
But I need to step out of this. How can I move ...
Pammie asked 29/12, 2015 at 21:53
4
So I'm working on a project with other people, and there's multiple github forks being worked on. Someone just made a fix for a problem and I merged with his fork, but then I realized that I could ...
Datum asked 11/5, 2011 at 21:34
1 Next >
© 2022 - 2025 — McMap. All rights reserved.