1. 获取当前分支名:

      1. git rev-parse --abbrev-ref HEAD
    2. 获取当前最后一个的 commit hash

      1. git rev-parse HEAD