Skip to content

How to create a new repository

fengmk2 edited this page Oct 29, 2022 · 2 revisions

Create a repository

Config stuff

Enable GitHub Action

npm i -D egg-ci

Settings - Options

image

Settings - Branch

  • protect master branch
    • Require pull request reviews before merging
    • Require status checks to pass before merging with continuous-integration/travis-ci
  • image
  • image

Init Project

$ egg-init --type=plugin egg-XXX
$ cd egg-xxx && git init
$ git remote add origin git@github.com:eggjs/egg-XXX.git

Then only add LICENSE at first commit at master

$ git add LICENSE
$ git commit -m 'feat: init project'
$ git push

Then enjoy your first implementation at new branch

$ git checkout -b first
$ # do something
$ git add .
$ git commit -m 'feat: first implementation'
$ git push

Note:

  • Don't forgot to edit package.json with repository url.