Command to get latest Git commit hash from a branch

前端 未结 6 821
春和景丽
春和景丽 2021-01-30 04:39

How can I check with the command line the latest commit hash of a particular Git branch?

6条回答
  •  一向
    一向 (楼主)
    2021-01-30 05:31

    you can git fetch nameofremoterepo, then git log

    and personally, I alias gitlog to git log --graph --oneline --pretty --decorate --all. try out and see if it fits you

提交回复
热议问题