diff options
Diffstat (limited to 'scripts/scripts/git-new-repo')
-rwxr-xr-x | scripts/scripts/git-new-repo | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/scripts/git-new-repo b/scripts/scripts/git-new-repo new file mode 100755 index 0000000..9d87310 --- /dev/null +++ b/scripts/scripts/git-new-repo | |||
@@ -0,0 +1,6 @@ | |||
1 | #! /usr/bin/env bash | ||
2 | |||
3 | repo=${1:-$(basename $(pwd)).git}; | ||
4 | ssh git@ferrn git init --bare "$repo"; | ||
5 | git remote add origin git@ferrn:"$repo"; | ||
6 | git push -u origin HEAD; | ||