Added methods to change branch and git dir