Hacker News new | ask | show | jobs
by krab 2173 days ago
Oh, thanks for it.

On my computer, I usually commit using `git gui` (and CLI for everything else). Mostly because I can see the full changes I'm commiting. Now, I can do it with vim for the occasional commit from some server.

1 comments

`git diff --cached` will show you the changes staged.

`git add -p` will give you a interactive way of committing partial changes.

`git commit -p` works as well.