Search code examples
tig

Tig revert (checkout) single line / chunk


Is there an option to revert changes from a single chunk in Tig's Status View?

I mean functionality opposite to u or 1. I am aware of ! operation, but this one reverts the whole file - not just a single change.


Solution

  • Yes, open the stage view by pressing Enter in the status view, move to the chunk you want to revert and press !.