Why is there a staging process in git?

前端 未结 5 1811
旧巷少年郎
旧巷少年郎 2021-01-01 17:20

Why is there the staging area between \"git add\" and \"git commit\"? I understand the concept, but fail to see the sense in adding files to the staging area before actually

5条回答
  •  情深已故
    2021-01-01 18:04

    You might want to commit only some of your changes. If you fix something you can commit only the relevant changes for the fix.

提交回复
热议问题