Implement repo branch and remote switching