Quick start:
NEW_REPOSITORY_NAME=FOOBAR; \
git clone https://github.com/ebln/template-php-package-7.2.git ${NEW_REPOSITORY_NAME} && cd ${NEW_REPOSITORY_NAME}
git remote set-url origin git@github.com-ebln:ebln/${NEW_REPOSITORY_NAME}.git
git push --set-upstream origin master
-
Is this public, incognito or private
-
- author
- autoload namespace
- name, description, keywords
- license
- requirements: versions still valid?
-
Update this README.md file!
- Clone this boilerplate
-
NEW_PROJECT_NAME=FOOBAR; \ git clone https://github.com/ebln/template-php-package-7.2.git ${NEW_PROJECT_NAME} && cd ${NEW_PROJECT_NAME}
-
- Setup git
- Create a new (origin) repository
- Define its name as a variable:
export REPOSITORY_NAME=FOOBAR;
- Define its name as a variable:
- Option: start all over
rm -rf .git && git init
# to flush boilerplate's git history- Configure git for your privacy demands
git remote remove origin; \ git config --list; \ git config user.email "sokolow@net.invalid"; \ git config user.name "Распутин"; \ git config --list --show-origin;
- Add origin
git remote add origin git@github.com-ebln:ebln/${REPOSITORY_NAME}.git
- as this is a new repository, run: ``
git add -A && git commit -m 'Initial commit'
- Option: keep the history from the template
- Update origin
git remote set-url origin git@github.com-ebln:ebln/${REPOSITORY_NAME}.git
- Update origin
- Create a new (origin) repository
- Set upstream & push
git push --set-upstream origin master