Skip to content

Instantly share code, notes, and snippets.

@ahmadbilaldev ahmadbilaldev/create_new_repo.sh Secret
Last active Dec 7, 2019

Embed
What would you like to do?
#!/bin/bash
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
You can’t perform that action at this time.