What's the point of the git staging area?


#1

https://www.codecademy.com/courses/learn-git/lessons/git-workflow/exercises/git-generalizations?action=resume_content_item

Why do we need git add? Why isn’t git commit enough? What’s the point of the staging area?


#2

Because you might not want to commit all your files, or you want to split all the files you worked on over 3 separate commits (if you worked on many separate components within the application).

learning programming consist of two steps, learning a concept like staging area (step 1) and applying the staging area in a project (step 2) to see its value. This is not specific for staging area, but for many programming concepts

that is why these questions are so difficult to answer, because you are step 1, step 2 would be working in a group to build an application, to see the power of git. Then you can experience that staging can be very useful.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.