Git Log

Git log lists commit history. It allows searching and filtering.

sh git log

sh git log -n 2

sh git log --author="user_name"

sh git log --grep="<pattern>"

sh git log --since=1.month.ago --until=3.weeks.ago

Git Log Workflow

  1. Change to workspace directory
  2. Clone the multi runner projects
  3. Change to project dir
  4. Search by author
  5. Search by date
  6. Combine

Commands

cd ~/workspace
git clone git@gitlab.com:gitlab-org/gitlab-runner.git
cd gitlab-runner
git log --author="Travis"
git log --since=1.month.ago --until=3.weeks.ago
git log --since=1.month.ago --until=1.day.ago --author="Travis"