getting information about commits of remote branches [Git]

50 Views Asked by At

Question about Git:

For a remote project, I would like to get it's last commit information (the last commit date) of a specific branch, without doing a clone.

I saw that I can use the following command git ls-remote --heads ssh:<path> in order to get all the branches. Using awk I can get the following list of branches:

BranchA
BranchB
BranchC

for each branch, I would like to get the date of the last commit, without doing a clone. Is it even possible? if no, what other alternative ways there are in order to get the information about all branches and their last commit date.

0

There are 0 best solutions below