fix function newBranch for check branch and remote.