'Github Desktop - "Discard modified lines" option greyed out
Solution 1:[1]
You need to right-click the very narrow area between the line numbers and the +/- symbol for the 'Discard modified lines' option to be available when you want to discard a contiguous block containing both added and removed lines.
When you have a block containing only one of added or removed lines, you can right-click on any individual line to discard it -- or use the same approach as above, using the left mouse button to first select multiple lines, then right-clicking in the very narrow area to bring up the menu.
There is an open issue about this non-obvious UX here.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |