Created
January 12, 2021 12:55
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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