commit index to indexBranch