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
0
votes
1 answer

Why can't I revert a GitHub commit?

I am a newbie in the GitHub world. I've been working on a project for my coding bootcamp. I had everything working just right to the specifications of the project and I was all done. Then I foolishly seem to have committed an old early version of…
0
votes
1 answer

Design Sync won't revert local changes

I am using the command dssc pop -get -unify path_to_file to locally modify a file and when i try to revert the changes with dssc cancel -force path_to_file I get an error "Error: path_to_file - Object does not exist" Same issue exists without…
PetrosM
  • 251
  • 3
  • 15
0
votes
0 answers

How to temporarily remove one past changest from master branch and merge back in the future?

I am looking for the best way to temporarily remove one past changest(merged from feature branch) from the master branch which is already pushed to the server, considering that I don't want to lose those changes as in the future we shall merge them…
Nazim
  • 639
  • 2
  • 10
  • 26
0
votes
1 answer

GIT : edit staged files in old commit but keep changes

I looked all over and couldn't find a solution to what I'm trying to do. Maybe I just missed it. Say I have: Commit A: - file 1 - file 2 - file 3 Commit B: - file 4 Commit C: - file 5 - file 6 HEAD: has files 1-6. Is there a way to interactively…
0
votes
1 answer

I destroyed my code and want to recover a previous date in android studio

Hello I made a big mistake and destroyed my code in android studio. Is there a way through the local history to revert the hole app to a previous state?
0
votes
2 answers

AssertionError: error message must contain revert

While I run test I get this error.. I am trying to make my own cryptocurrency using the DAPPuniversity tutorial, however, my code keeps throwing an exception. Contract: ValleyToken √ initialize the contract with correct values (363ms) √…
Mohit Rakhade
  • 351
  • 4
  • 8
0
votes
0 answers

accidentally added large file to git... how to remove?

silly me... so i as blindly adding files to git with git add ., not realising that there were some stupidly large tarballs in the path. and of course not having the relevant .gitignore in place. of course, i didn't think too much of it, and didn't…
yee379
  • 6,498
  • 10
  • 56
  • 101
0
votes
1 answer

How to recover overwritten file that I git stashed?

I attempted to pull, but git complained about local changes being overwritten so I stashed and pulled. By pulling, I wrote over a file that I now want to revert back to how it was when I stashed it. How can I do this? When I run git git stash show…
displayName
  • 195
  • 2
  • 15
0
votes
1 answer

How do I revert a branch to a commit and put the forward commits to a new branch?

I have a git look like this, for both remote and local. A---B---C---D master Now I want my master to be reverted at B commit, but I also don't want to lose my C and D commit. Is there a way to make my git look like this for both remote and local? …
Hao Wu
  • 17,573
  • 6
  • 28
  • 60
0
votes
0 answers

JGit Reverting a merge commit

private static boolean revertRepository(String commit, int parent) throws RevisionSyntaxException, AmbiguousObjectException, IncorrectObjectTypeException, IOException { try { RevWalk walk = new RevWalk(repository,…
Josh Demail
  • 101
  • 1
  • 6
0
votes
0 answers

How to remove sensitive data from GitHub

I am using a shared github repository to collaborate on a project. Because i am an idiot, I committed and pushed a script file containing a password which I don't want to share (Yes, i can change the password, but I would like to remove it…
doctorer
  • 1,672
  • 5
  • 27
  • 50
0
votes
1 answer

How do I recover the SHA of a reverted commit?

Say I have a revert "Revert "Commit B"", is there a way to get the SHA-1 of "Commit B"? I was hoping if it was possible to get the SHA-1 of any reverted commit like in a merge. Since the parent of a merge commit is booth the SHA-1 of the two merged…
0
votes
2 answers

Git revert/checkout for specific files touches them, but leaves contents unchanged

My co-worker added some .ps1 files some time ago (several commits since, he might have modified only one of them again later etc. - so we can't assume it was all done in one commit). Let's say they were added in commit1 and later one of the files…
TravelingFox
  • 484
  • 5
  • 18
0
votes
3 answers

What's the similarity & difference between git reset --hard HEAD~1 and git revert HEAD?

I'm trying to wrap my head around this. From what I can tell, "git reset --hard HEAD~1" will remove the last commit, and that commit won't be seen in "git log". And "git revert HEAD" will put me in nano where I can edit the commit message and also…
piedude
  • 111
  • 1
  • 10
0
votes
0 answers

How do I revert the changes that I made and saved on eclipse (for the same .java file)?

I made some changes to my code in Eclipse in a way that it would work for one input file. When I tested my code with other input files, the other input files were not working, so I want to revert the changes. I tried this by pressing command+z, but…
Alex Kang
  • 11
  • 5