Rename branch to ref