Files
.dotfiles/.local/bin/gh-upload
2024-08-26 11:21:45 +02:00

11 lines
316 B
Bash
Executable File

#!/usr/bin/env bash
# gh-cli shortcut to upload a repo to github
# takes an optional flag --private
# and an optional parameter which repo should be uploaded, defaults to CWD
if [ "$1" = "--private" ]; then
gh repo create --push --private --source ${2-.}
else
gh repo create --push --public --source ${2-.}
fi