If a branch history is corrupted, one can use git _______ to recreate commits from the reflog.
- git restore
- git reflog
- git recover
- git recreate
The correct option is git reflog. This command is used to access the Git reflog and can be helpful in recovering from a corrupted branch history by allowing the recreation of commits from the reflog.
Loading...
Related Quiz
- How should a distributed team structure their Git branches to optimize collaboration?
- Cloud platforms like GitHub provide _________ to facilitate tracking issues and tasks related to the codebase.
- What is a common use of git stash in Git?
- _______ in Git are essential for maintaining different versions of database scripts for various features.
- In Git, a _______ merge is used to integrate changes from one branch into another without creating a merge commit.