結果 : git check if a branch has a commit