SushiHangover

PowerShell, Learn it or Perish ;-)

master nix
Gitter

git - Commit only specific staged files

I needed to commit a limited number of changes that were already staged.

In the early days of git, I remember having to stash all the changes and pop only the changes that I need to commit and push. I’m not sure when the ‘–only’ option was added to commit, but it sure saves a bunch of extra steps:

git commit --only configure.in

Comments