diff options
author | Akshay <[email protected]> | 2020-10-04 10:11:25 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2020-10-04 10:11:25 +0100 |
commit | a74492efd1213ae36aef997c743501c40f261909 (patch) | |
tree | ef29f305c92a429829bb8919c8c96d72c971843a /scripts/scripts/git-new-repo | |
parent | 93b9d17c6b2c8f63b1d05205c6ec696d998f904c (diff) |
add git aliases
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; | ||