JetpackDuba / Gitnuro

A FOSS Git multiplatform client for newbies and pros
https://gitnuro.com/
GNU General Public License v3.0
869 stars 44 forks source link

Selectively revert a comit #199

Open adam-ce opened 5 months ago

adam-ce commented 5 months ago

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.

JetpackDuba commented 5 months ago

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.