aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/scripts/git-new-repo12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/scripts/git-new-repo b/scripts/scripts/git-new-repo
index 9d87310..baf1155 100755
--- a/scripts/scripts/git-new-repo
+++ b/scripts/scripts/git-new-repo
@@ -1,6 +1,12 @@
1#! /usr/bin/env bash 1#! /usr/bin/env bash
2 2
3repo=${1:-$(basename $(pwd)).git}; 3if [ $# -eq 0 ]; then
4ssh git@ferrn git init --bare "$repo"; 4 echo "requires an arg"
5git remote add origin git@ferrn:"$repo"; 5 exit 1
6fi
7
8# $1 - section/repo-name
9
10ssh git@ferrn git init --bare "$1";
11git remote add origin git@ferrn:"$1";
6git push -u origin HEAD; 12git push -u origin HEAD;