isomorphic-git icon indicating copy to clipboard operation
isomorphic-git copied to clipboard

Add support for git revert

Open potatolain opened this issue 5 years ago • 4 comments

The git revert feature is super useful in reversing changes that have gone wrong. I was a little surprised to see no mention of it anywhere in the documentation, PRs, or issues. (Or anywhere in the codebase, really)

As far as I know there's no way to do it with the commands available today. (If I'm missing something obvious, let me know!)

I suspect it might be a bit of a challenge to implement, but it'd be great to have!

potatolain avatar Aug 10 '20 05:08 potatolain

@cppchriscpp mind leaving an explanation of why this was closed? Maybe how you fixed the issue or whatnot?

crutchcorn avatar Aug 18 '20 05:08 crutchcorn

Sure. I no longer need the functionality, and no one else had responded to it so I figured I'd close it to reduce the noise.

Update: I'm fine reopening it if you'd like to keep tracking the feature btw - I'd guess someone else may want this feature in the future. (I didn't find a workaround or anything - it would need new code.)

Cheers

potatolain avatar Aug 18 '20 05:08 potatolain

I'd like to have this feature. Would you please guide me how to implement this feature? I'll create a PR for it.

ngocdaothanh avatar Jun 08 '24 16:06 ngocdaothanh

@ngocdaothanh the main issue on any feature is to figure out how to do this. This can probably be created outside the library with available functions. You need to create a commit that will have the opposite changes to the one for the original commit. But I'm not sure how this should be done.

jcubic avatar Jun 09 '24 11:06 jcubic