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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *