想知道当前代码在git仓库中的版本,最直接的方法是使用git log直接进行查看。此外也可以通过在terminal中执行以下指令直接获得: 1 git log --pretty=format:"%h" -n 1 将”%h”换成”%H”可以获得long形式的Hash 赞微海报分享
近期评论