What is the benefit of git's two-stage commit process (staging)?
https://softwareengineering.stackexchange.com/questions/69178
-
31-10-2019 - |
Question
I'm learning git and I've noticed that it has a two-step commit process:
git add <files>
git commit
The first step places revisions into what's called a "staging area" or "index".
What I'm interested in is why this design decision is made, and what its benefits are?
Also, as a git user do you do this or just use git commit -a
?
I ask this as I come from bzr (Bazaar) which does not have this feature.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with softwareengineering.stackexchange