Last active
July 16, 2019 21:54
-
-
Save daliborgogic/fda7b6631c852931471dca75140c09a4 to your computer and use it in GitHub Desktop.
Project Folder Structure
This file contains hidden or 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/bash | |
# Project Folder Structure | |
# /project_name | |
# /assets | |
# /fonts | |
# /img | |
# /source | |
# /.git | |
# index.js | |
# package.json | |
# /docs | |
# brif.docx | |
# invoice.pdf | |
mkdir $1 \ | |
$1/assets \ | |
$1/source \ | |
$1/docs \ | |
&& cd $1/source \ | |
&& echo "# $1" >> README.md \ | |
&& git init \ | |
&& git add README.md \ | |
&& git commit -m "first commit" \ | |
&& curl \ | |
-H "Authorization: token $3" \ | |
--data '{"name": "$1", "private": true}' \ | |
https://api.github.com/user/repos \ | |
&& git remote add origin [email protected]:$2/$1.git \ | |
&& git remote -v \ | |
&& git push origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage