git, get branch name method