Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get git project information

Tags:

git

We have server, which is used for creating all project by git. There are several project say project1.git ,project2.git and prohectx.git How may i know who has created project1.git and statistics of project?

like image 265
twid Avatar asked Mar 15 '26 03:03

twid


2 Answers

However, you can also use git log to look for specific commits.

git log --stat show different stat of changes introduced at each commit

for more details you can refer Git Reference

like image 86
Himanshu padia Avatar answered Mar 16 '26 15:03

Himanshu padia


Creation of the project is the first commit, and it has author and date attached to it. To display use:

$ cd project1.git
$ git log --reverse --pretty=medium | head -3
commit 3fdc617258b295f3fc1cdd6d6d7f9d98bd294513
Author: John Doe <[email protected]>
Date:   Thu Sep 6 11:34:35 2012 +0200

This assumes the git history has only one root (see How to show first commit by 'git log'? for discussion about it)

like image 30
CharlesB Avatar answered Mar 16 '26 17:03

CharlesB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!