-1

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 ?

Jaydeep Mor
  • 1,690
  • 3
  • 21
  • 39

1 Answers1

0

You used correct command for getting commit-hash (git merge-base), but git show --summaryfor branchpoint is damned delirium!!!

git show -s --format=%ci <...>

or another formats for another timestamp's representation

Lazy Badger
  • 94,711
  • 9
  • 78
  • 110