Re:Oh shit, git: Getting myself out of bad situations
by tigershark on Monday December 18, 2017 @02:48PM
(#15954811)
And how is this faster/better than selecting a line with the mouse and pressing s without opening any other editor?
Re:Oh shit, git: Getting myself out of bad situations
by RandomException on Monday December 18, 2017 @03:04PM
(#15954953)
Do it in Vim (or emacs for those weirdos out there) and you're done before you would've even reached the mouse :)
In there you can remove added lines (prefixed by '+') by removing them, and re-adding removed lines (prefixed by '-') by replacing the '-' with a space ' '.