What is the difference between git add
and git commit
?
I understand that former adds to staging. But adding to staging means what?
Isn't it an additional step to first add to staging and then do a commit? In fact, it just doesn't end there, we also have to do a push
to actually save our changes to the centralized repository. Am I missing any point here?