获取git的最后一次提交的commit id git log --pretty=format:"%h" | head -1 | awk '{print $1}' 可以放到xcode build setting post run script 里面设置版本号。
2019-10-23 17:11 − 相关的命令: git log:查看所有的commit提交记录; git show: 查看提交的详情; 首先,需要通过git log打印所有commit记录,例如: 1.查看最新的commit:git show 2.查看指定commit的所有修改:git show commitId... coolw 0 11605 统计git提交代码量 2019-12-20 19:08 − # a新增...