Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.22 KB

CONTRIBUTING.md

File metadata and controls

60 lines (38 loc) · 1.22 KB

Code style

We use astyle to format code

Look at git_hooks/astyle-options.txt, you can use the pre-commit hook in the same dir,but you need to install cppcheck and astyle.

How to Write a Git Commit Message

We use this standard.

You can use the commit-msg git hook in git_hooks/, but you need to install python 3.

How to make a pull request

  • fork the alibaba/CicadaPlayer git

  • clone the CicadaPlayer git into your develop pc

git clone [email protected]:yourname/CicadaPlayer.git
  • add the alibaba remote and fetch
cd CicadaPlayer
git remote add alibaba git://github.com/alibaba/CicadaPlayer.git
git fetch alibaba
  • checkout a new branch form alibaba develop
git checkout alibaba develop -b develop
git checkout -b topic alibaba/develop
  • rebase your change
git checkout develop
git pull alibaba develop

git checkout topic
git rebase develop
  • after resolve conflict , push to origin
git push origin topic:topic
  • make a pull request to alibaba/CicadaPlayer, this will trigger a travis build, unit test and coverage test, your pull request will not be merged if build err, coverage descend or the cla is not be agreed.