On Wed, Jan 16, 2019 at 01:09:03PM -0600, Cameron Steffen wrote: > Hello, > > I have this feature idea for git. There should be a command that > effectively combines git add -p and git checkout -p so that I can > navigate changed hunks and either stage or discard them. > > There is already a SO question asking about this exactly... > https://stackoverflow.com/questions/11538650/simultaneously-git-add-p-and-git-checkout-p > > Has this been discussed before? Is this a reasonable request? If so, I > might look into contributing the change myself. > > Cameron Install Git Cola. It's a powerful Git GUI with a keyboard-centric workflow. You can do this completely through keyboard shortcuts (or a mouse if you prefer). Typically: $ git cola ctrl-k: focus the status widget j,k: navigate up/down the file list ctrl-s: stage files ctrl-u: revert files to index ctrl-j: focus the diff widget to operate at the line/hunk level j, k: move the cursor up/down lines, hold shift to select lines s: to stage selection, or current hunk if no lines are selected ctrl-u: revert the selection, or current hunk, to match the index https://github.com/git-cola/git-cola https://git-cola.github.io/downloads.html -- David