What are the three states of a Git file? (Choose three.)

IT Exam Items RepositoryCategory: DevNetWhat are the three states of a Git file? (Choose three.)

What are the three states of a Git file? (Choose three.)

  • secured
  • staged
  • committed
  • locked
  • modified
  • deleted

Explanation: There are three Git file states:

  • Committed: The version of the file saved in the.git directory.
  • Modified: The file has changed but has not been committed to the repository.
  • Staged: The modified file is ready to be committed to the repository.

Related exam: 3.7.2 Module 3: Software Development and Design Quiz