Skip to content

Instantly share code, notes, and snippets.

@ahmadbilaldev
Last active December 7, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmadbilaldev/c694dbb57ff3495d98435e063e978b70 to your computer and use it in GitHub Desktop.
Save ahmadbilaldev/c694dbb57ff3495d98435e063e978b70 to your computer and use it in GitHub Desktop.
#!/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