[英]How do I get branch created timestamp with PHP?
I want to get created Git branch (hotfix / feature) timestamp with shell_exec .我想使用shell_exec创建 Git 分支(修补程序/功能)时间戳。
I tried below,我在下面试过,
shell_exec("git show --summary `git merge-base your_branch master`");
But it showing null
.但它显示
null
。
Does anyone know how to get it with php ?有谁知道如何用 php 获取它?
You used correct command for getting commit-hash ( git merge-base
), but git show --summary
for branchpoint is damned delirium !!!您使用了正确的命令来获取提交哈希(
git merge-base
),但是git show --summary
--summary 是该死的谵妄!!!
git show -s --format=%ci <...>
or another formats for another timestamp's representation或其他时间戳表示的其他格式
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.