pull request

  1. fork the repo
  2. clone your fork
  3. Create the branch : git checkout -b pr/dd
  4. Run npm install
  5. Run npm run build , if everyting work, then, you’re ready to make changes.
  6. 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.
  7. 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)
  8. Push you changes to your fork with git push
  9. Create a pull request
  10. Iterate on the solution
  11. Get merge!

合并 多个提交

Rebase branch

git fetch upstream
git rebase upstream/master

然后 git push 到自己的远程分支 

Leave a Reply

Your email address will not be published. Required fields are marked *