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.
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.
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 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With