Skip to main content

Questions tagged [git-revert]

Revert changes of a commit in a Git repository.

0 votes
1 answer
93 views

Revert and delete Azure DevOps commit history?

I made a small commit and pushed it to our main branch in Azure DevOps. I realized that this commit was obsolete, as it was based on wrong assumptions and miscommunication with my colleague, who made ...
schluk5's user avatar
  • 197
1 vote
1 answer
66 views

Git Blob_id with no path, how to erase it [duplicate]

I am not an expert with GitLab, so I am seeking help. I have a git repository and I made the mistake to install a code inside with files bigger than 100 Mo, and I committed several times before ...
arkhose u's user avatar
0 votes
2 answers
66 views

How can we revert particular commit in local from bunch of commits?

Requirement: Revert particular commit in local by commit ID. Description: I have a branch cloned in my local from some repo. I made some changes and committed time to time (Not pushed) E.g. Made ...
Paveloosha's user avatar
0 votes
0 answers
13 views

Issue with Github compare after a revert

This is the layout of my Git projects. Master < Dev < Dev2 I have been working on changes on Dev2 for months, and recently moved them up to Dev to get ready for deployment. In the mean time a ...
Yankeecandle's user avatar
1 vote
3 answers
118 views

Git revert for multiple merge and commits to a particular commit state

I understand that this question has been asked multiple times, but either the scenario was a little different or I couldn't really understand it. Basically, my git history looks something like this: ...
Cherple's user avatar
  • 781
-1 votes
2 answers
47 views

how to push an old reseted or reverted heads

I can go back and forward in my history using git checkout heads git revert heads git reset heads And when I do git push origin main I get Everything up-to-date and no change on remote server. how to ...
Besmella Kazimy's user avatar
1 vote
1 answer
49 views

Remove very old commit that added a contributor to my repo

Almost 10 years ago I was playing with a bot (waffle.io to be precise) in my repo. It pushed a single commit adding a badge and I quickly stopped using the service and the badge. It bothers me that ...
Gabriel's user avatar
  • 42.1k
0 votes
0 answers
44 views

How do I revert git checkout from a feature branch? [duplicate]

I'm new to git. I generally create a new feature branch from master & then work on the task. Recently, I executed git checkout instead of git switch when moving from master to my existing feature ...
Pranjal Successena's user avatar
-1 votes
1 answer
43 views

How do I git revert to a point at which my fork is both behind and ahead of the upstream?

I was working on a fork of a github project and wanted to incorporate the changes on it into my fork, so i could open a pull request. However I made some mistakes during the merge and ended up ...
user24186854's user avatar
-1 votes
3 answers
51 views

How to remove a feature from master-dev after has been intermingled with other feature commits?

Let's say we have a git repo with a master-dev branch. When developers complete their features, each feature branch in merged into the master-dev. One day, A large feature is merged into master-dev ...
Hoyt Jolly's user avatar
1 vote
1 answer
38 views

Revert merged PR from git master branch

I have 2 git branches master and develop. master is production ready and develop is live development branches. I opened a PR to merge develop changes into master which had changes and commits which ...
Sarfaraz Khan's user avatar
0 votes
0 answers
34 views

Revert Git rebase that is pushed to origin

I did some changes in my feature branch. Before pushing, I rebased it to master branch ON BRANCH Feature(featureBranch) -> git rebase master then i pushed it git push origin featureBranch Then I ...
DunzanOffice's user avatar
0 votes
0 answers
28 views

Does git revert only take previous commit-hash, and for others we need to use HEAD~3 syntax?

I I am providing git revert 5thCommitHashFromHead, it says auto-merging, I removed conflicts from code editor, it still shows master|reverting, but when I provided git revert HEAD~5 it works fine, do ...
Jasvinder Singh's user avatar
0 votes
1 answer
57 views

How to prevent git from applying recorded changes during a git revert

So I did a git revert and resolved the conflicts which turned out to not be the correct resolution. Now the next time I do a git revert, to get to a stage where conflicts are still unresolved, git ...
A. K.'s user avatar
  • 36.8k
0 votes
0 answers
47 views

Cannot Merge GIT branch [duplicate]

I have on the branch dev and I created new branch from this branch with git checkout -b dev3 and I do some modification on this dev3 branch. After commit I merge it again to dev branch so I go back to ...
naticap's user avatar
  • 389

15 30 50 per page
1
2 3 4 5
35