Edit 'ghrc' script
Add `--public` flag to create public repos.
This commit is contained in:
parent
b1186901b7
commit
8d00ae1277
@ -1,11 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Very stupid script to create remote GitHub repo and replace
|
# Very stupid script to create remote GitHub repo and replace
|
||||||
# https to ssh remote connection.
|
# https to ssh remote connection.
|
||||||
|
|
||||||
[ ! "$(git status 2>/dev/null)" ] && git init
|
[ ! "$(git status 2>/dev/null)" ] && git init
|
||||||
|
|
||||||
gh repo create | sed 's/https:\/\//Added remote: git@/g'
|
gh repo create --public | sed 's/https:\/\//Added remote: git@/g'
|
||||||
|
|
||||||
url="$(git remote -v | awk 'NR==2 { print $2 }' | \
|
url="$(git remote -v | awk 'NR==2 { print $2 }' | \
|
||||||
sed 's/.*https:\/\//git@/g; s/com\//com:/g')"
|
sed 's/.*https:\/\//git@/g; s/com\//com:/g')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user