`git log` inside a checkout step shows just single commit

When using git log in action/checkout step, even after using fetch and pull, I can only see a single commit in github actions, whereas on my local (even you can check on your local, as I print the SHAs value in git log fromBase..toRecent values

Look up the fetch-depth parameter in the actions/checkout documentation. By default it is 1, meaning only the latest commit is fetched.

1 Like

Yup, thank you so much!

1 Like