remote branch is now RemoteBranch and fix and add more useful git functions