- fork the repo
- clone your fork
- Create the branch : git checkout -b pr/dd
- Run npm install
- Run npm run build , if everyting work, then, you’re ready to make changes.
- Run npm run test. Make you changes and try to make the tests pass. if you can’t or need help then commit what you have with –no-vertify and make a PR.
- if you get things working , add your changed files with git add and run npm run commit to git an interactive prompt for creating a commit message that follows our standards. you’ll notice that there are git hooks in place which will run testing, linting, etc. (unless you commit with –no-verify)
- Push you changes to your fork with git push
- Create a pull request
- Iterate on the solution
- Get merge!
合并 多个提交
Rebase branch
git fetch upstream
git rebase upstream/master
然后 git push 到自己的远程分支