3 ms·
This would break the workflow of using the staging area to break a larger change into smaller commits. git add -p Allows you to select hunks of changes and st
by ArchOversight 4y ago
This would break the workflow of using the staging area to break a larger change into smaller commits.
git add -p
Allows you to select hunks of changes and stage them for committing...
- shagie 4y agoFor GP's use case, its "added some stuff, want to stage the stuff I modified since then to those files"... which I feel is a perfectly normal workflow. There's nothing saying that one can't add chunks to the staging area and then immediately commit it without invoking that alias afterwards (since it is a very deliberate "add these things" rather than "adding a bunch of things and keep adding."
- tome 4y ago> git add -p git commit -p achieves the same, but avoids explicitly using the staging area.