how to create remote repo command line code example

Example 1: create new remote branch

git checkout -b <new-branch-name>	#Create new branch locally
git push <remote-name> <new-branch-name> #Create new branch remotely

Example 2: how to create remote webdriver

String hubURL = "http://myip:4444/wd/hub";
	DesiredCapabilities capability = DesiredCapabilities.chrome();
	capability.setBrowserName("internet explorer");
	capability.setPlatform("WINDOWS");
	capability.setVersion("9.0.4");
	WebDriver driver = new RemoteWebDriver(new URL(hubURL), capability);
	driver.get("http://www.google.com");

Tags:

Misc Example