Repaso
EspaƱol

Git has three main areas on your machine. Which list is correct?

Options

  1. Working directory, staging area, local repository (Correct option)
  2. Server, client, cache, and the remote repository
  3. Branch, tag, commit, and the local configuration
  4. Backup, restore, delete, and the history logs

Answer

Working directory, staging area (index), local repository

Why

  1. Working directory: the files you see and edit.
  2. Staging area (index): a waiting room where you choose what goes into the next commit (git add).
  3. Local repository: the permanent history of commits (git commit).

Then git push sends your commits to a remote repository (GitHub).

Flow: edit, git add, git commit, git push.

git add src/App.java
git commit -m "Add user validation"
git push origin feature/validation

Remember

Edit, add (stage), commit, push.

Key terms

Practice this question in Repaso