79744108

Date: 2025-08-23 08:28:03
Score: 1
Natty:
Report link

For those looking for multiple staging areas in Git, git-cl provides this functionality.

Instead of repeatedly cycling through git add -p, you can organise changes by intent at the file level:

git cl add bugfixes solver.py utils.py        # Bug fixes
git cl add features analysis.py plotting.py   # New features  
git cl status                                 # See organised changes
git cl commit bugfixes -m "Fix convergence issues"

For scenarios involving many smaller commits from a large changeset, you can organise changes as you work (git cl add hotfix equations.py) then commit each logical group when ready. This solves the multiple staging area problem while working with Git's existing staging model

https://github.com/BHFock/git-cl

Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BHF