Skip to content

Instantly share code, notes, and snippets.

@janniklorenz
Created March 21, 2016 22:14
Show Gist options
  • Select an option

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

Select an option

Save janniklorenz/a89b8985d2d0e2332460 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Create path to repo
mkdir -p $(dirname $1)
# Create Bare Repo
git clone "https://github.com/$1" --bare "$1.git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment