# Create a new repository, clone it and push the first commit | |
function ghinit() { | |
NAME=$1 | |
DSC=$2 | |
TYPE=$3 | |
echo "Creating Repository" | |
gh re --new "$NAME" --description "$DSC" --type "$TYPE" | |
gh re --clone --repo "$NAME" | |
cd "$NAME" | |
echo "# $NAME" >> README.md | |
echo "< $DSC" >> README.md | |
git add . | |
git commit -m "📦 NEW: First Commit" | |
git push | |
echo '' | |
echo "✅ Done: https:github.com/AhmadBilalDev/$NAME" | |
echo '' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment