Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get git log from a repo. in github.com?

Tags:

git

github

I know one way to a git log is to do a git clone of a repo. from somewhere where there is a git repo. So if there is a large git repo. on github.com and I just want a git log of the repo. either between the last release and now or even just a raw git log is it possible without cloning the repo. ? If yes, how do I go about doing that. You can use any git repo. on github to share ways to do the same. I tried on the interwebs if there was any way to do the same but came up short.

like image 660
shirish Avatar asked Dec 14 '14 09:12

shirish


People also ask

How do I get to git log?

The command for that would be git log –oneline -n where n represents the number up to which commit you to want to see the logs.

Is there a git log?

The git log command shows a list of all the commits made to a repository. You can see the hash of each Git commit , the message associated with each commit, and more metadata. This command is useful for displaying the history of a repository.

What is git log command?

What does git log do? The git log command displays all of the commits in a repository's history. By default, the command displays each commit's: Secure Hash Algorithm (SHA) author.


1 Answers

You can only do so if the remote server which provide the Git repo hosting service also provides an API.

For instance, GitHub allows you to get the log of a git repo (without cloning it first), with listing the commits on a repository

GET /repos/:owner/:repo/commits

You can add several parameters to limits the commits you want, like ?sha=xxx, a SHA or branch to start listing commits from.

like image 159
VonC Avatar answered Oct 05 '22 13:10

VonC