Check for uncommitted changes before creating the branch