is to automate the ....
- initializing current directory
sh githubinit.sh <projectname>
The <projectname>
will be used to:
- create a
<projectname>
directory under/web/webroot/
- add the DNS HOSTS entry to resolve
http://<projectname>
locally
- takes 1 input parameter
<reponame>
(which should match<projectname>
) - if does not exist, creates
<reponame>
directory - if does not exist, copies default
<README.md>
- if does not exist, creates
<reponame>
on gitHub and adds remote origin - initializes repo and pushes to github master
- creates develop branch, adds files, and pushes upstream, setting tracking, and removing local master branch