A team member needs to review changes made in the past two weeks, but there are too many commits to check individually. What Git command should they use?
- git log --since="2 weeks ago"
- git show --last=2.weeks
- git diff --since="2 weeks ago"
- git blame --since="2 weeks ago"
The correct option is to use "git log --since="2 weeks ago"" to view the commit history for the past two weeks. Git log provides a detailed overview of commits, making it easier for the team member to review changes over the specified period.
Loading...
Related Quiz
- How does integrating a code quality tool in the Git workflow enhance the development process?
- What is the main difference between git fetch and git pull?
- When would you use git checkout instead of git reset to undo changes?
- How can you create an annotated tag in Git that includes a message?
- What is a common challenge when scaling Git for enterprise use?