In the case of a corrupted repository, what Git command can be used to verify the integrity of the repository?
- git fsck
- git verify
- git check
- git integrity
The correct command is git fsck, which stands for file system check. It checks the integrity of objects in the repository and can help identify and fix issues in a corrupted repository.
Loading...
Related Quiz
- A company is transitioning from SVN to Git. They want to ensure their historical branches and tags are preserved. What migration strategy should they use?
- How can you protect sensitive data from being committed in Git?
- The command git _______ is used to create a new branch and switch to it in one step.
- What lesson is typically learned from major Git failures in terms of repository management?
- In the context of a large project, how does Git facilitate code reviews and quality assurance?