modify cmd, branch and checkout