mirror of
https://github.com/chenasraf/dotfiles.git
synced 2026-05-17 17:28:07 +00:00
13 lines
323 B
Bash
Executable File
13 lines
323 B
Bash
Executable File
#!/usr/bin/env zsh
|
|
|
|
create-repo() {
|
|
if [[ -z "$REPO_NAME" ]]; then
|
|
printf "Repository name: "
|
|
read -r REPO_NAME
|
|
fi
|
|
|
|
gh repo create "$REPO_NAME" --private --disable-wiki || exit 1
|
|
git init || echo "Local repo already initialized"
|
|
git remote add origin "git@github.com:chenasraf/$REPO_NAME.git" || exit 1
|
|
}
|