support git branch name display and last commit