Determine the branch and commit type