Is it possible to get commit logs/messages of a remote git repo without git clone

If you are looking to see the last few commits of a branch, try:

git clone -b [branch name] --single-branch [repo url] --depth=3

This will clone only the last 3 commits on the branch you are interested. Once done you can get into the cloned repo and view the history.

Leave a Comment