I want to get created Git branch (hotfix / feature) timestamp with shell_exec.
I tried below,
shell_exec("git show --summary `git merge-base your_branch master`");
But it showing null
.
Does anyone know how to get it with php ?
I want to get created Git branch (hotfix / feature) timestamp with shell_exec.
I tried below,
shell_exec("git show --summary `git merge-base your_branch master`");
But it showing null
.
Does anyone know how to get it with php ?
You used correct command for getting commit-hash (git merge-base
), but git show --summary
for branchpoint is damned delirium!!!
git show -s --format=%ci <...>
or another formats for another timestamp's representation