Skip to content

Instantly share code, notes, and snippets.

@janniklorenz
Created March 12, 2016 13:07
Show Gist options
  • Select an option

  • Save janniklorenz/445aae0093e220042866 to your computer and use it in GitHub Desktop.

Select an option

Save janniklorenz/445aae0093e220042866 to your computer and use it in GitHub Desktop.
#!/bin/bash
host=$(ssh [email protected] "~/newRepo.sh $1")
./newLocalRepo.sh $1
git -C "$1" remote add "host" $host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment