Junior — Middle
Where are local changes of a project stored before they are pushed to a remote repository in Git?
sobes.tech AI
Answer from AI
In Git, local changes to a project are initially saved in the working directory. After you add changes with the git add command, they move to the index (staging area) — an intermediate storage where the next commit is prepared.
Only after executing git commit are the changes saved in the local repository. Sending changes to the remote repository is done with the git push command.
Thus, before pushing to the remote repository, changes are in the local repository and the index.