aboutsummaryrefslogtreecommitdiff
path: root/scripts/scripts/git-new-repo
blob: baf115547d62e51edcede16ac82df56469337cbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /usr/bin/env bash

if [ $# -eq 0 ]; then
    echo "requires an arg"
    exit 1
fi

# $1 - section/repo-name

ssh git@ferrn git init --bare "$1";
git remote add origin git@ferrn:"$1";
git push -u origin HEAD;