Forrest logo
back to the git tool

git-rev-list:tldr:3c416

git-rev-list: List commits more recent than a specific date, on a specific branch.
$ git rev-list --since=${'2019-12-01 00:00:00'} ${branch_name}
try on your machine

This command is used in Git to list all the commit objects in a branch since a specific date and time.

Here's a breakdown of the command:

  • git rev-list: This is the Git command used to list commit objects.
  • --since=${'2019-12-01 00:00:00'}: This is an option that specifies the start date and time for filtering the commit objects. In this case, it is set to "2019-12-01 00:00:00". The ${...} syntax is usually used in shell scripting to substitute variables or command outputs.
  • ${branch_name}: This is the name of the branch you want to examine. Replace ${branch_name} with the actual branch name.

Putting it all together, the command will list all the commit objects in the specified branch that were committed on or after December 1, 2019, at 00:00:00.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool