Skip to content

Instantly share code, notes, and snippets.

@Kongduino
Created January 12, 2021 12:55
Show Gist options
  • Save Kongduino/7672edf5c3e39d66007dc281b850fe8d to your computer and use it in GitHub Desktop.
Save Kongduino/7672edf5c3e39d66007dc281b850fe8d to your computer and use it in GitHub Desktop.
A quick hack to do most of the work for me when creating a new project on GitHub
#!/bin/sh
git init
cp ~/Coding/LICENSE ./
MYNAME=`pwd|cut -d "/" -f 6`
echo "Project name is $MYNAME"
echo "# $MYNAME">README.md
git add *.*
git add LICENSE
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/Kongduino/$MYNAME.git
git push -u origin main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment