Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selectively revert a comit #199

Open
adam-ce opened this issue Jan 29, 2024 · 1 comment
Open

Selectively revert a comit #199

adam-ce opened this issue Jan 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@adam-ce
Copy link

adam-ce commented Jan 29, 2024

Is your feature request related to a problem? Please describe.
I'm always frustrated when i want to revert something and several unrelated changes are packed into one commit. it's then hard to revert exactly what i want. basically i have to go manually, or revert all of it, and revert revert what i don't want. then i get confused what is reverted, reverted reverted, and reverted reverted reverted ;)

Describe the solution you'd like
a mode for partial or selective reversion. ideally, there would be a diff from current to a certain commit, and you can click and select which lines are reverted.

Describe alternatives you've considered
manually copying the lines from the commit diff view, or reverting all files from that commit and deal with consequences.

@adam-ce adam-ce added the enhancement New feature or request label Jan 29, 2024
@JetpackDuba
Copy link
Owner

Until I look into it, an easier way would be to simply revert the commit and do a mixed reset to the previous one, then you can decide there what to stage/commit.

@JetpackDuba JetpackDuba changed the title slectively revert a comit Selectively revert a comit Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants