获取最后一次commit的时间 git show --pretty=format:"%ci %cr" | head -1 2021-04-07 15:06:17 +0800 2 hours ago 获取最后一次提交的commit Id git rev-parse HEAD 31cab83b6cc7b844dc407291d47ac72f1d495690 获取最后一次提交的short commit Id git rev-parse --short HEAD 31cab83b6
获取最后一次commit的时间 git show --pretty=format:"%ci %cr" | head -1 2021-04-07 15:06:17 +0800 2 hours ago 获取最后一次提交的commit Id git rev-parse HEAD 31cab83b6cc7b844dc407291d47ac72f1d495690 获取最后一次提交的short commit Id git rev-parse --short HEAD 31cab83b6