-
Notifications
You must be signed in to change notification settings - Fork 61
Workflow
The detailed workflow for contributing code is described below.
First, sign into your GitHub account. If you don't have an account yet, just create one.
Go to the FlyCV repository, fork it by clicking the Fork
button in the upper right corner.
Then a forked repository will appear on your profile page.
Use the git clone
command to copy the forked repository to the local.
For daily works like adding a new feature or fixing a bug, please open your feature branch before coding:
git checkout -b my-work
We use the pre-commit
to check the code style. Before your first commit, please install pre-commit by running the following commands:
pip install pre-commit
cd FlyCV
pre-commit install
For easy synchronization of the original repository, use the following command to add the upstream repository.
cd FlyCV && git remote add upstream https://github.com/PaddlePaddle/FlyCV.git
Before coding, it's a good practice to first synchronize your local repository with the project repository. Use git pull upstream develop
to pull any changes from the develop branch of the upstream into your local repository.
Push your changes to your fork repository by using git push origin <branch name>
.
Return to your fork on GitHub, You can see a highlighted area that displays your recently pushed branch:
Click the Compare & pull request
button to create pull request, and then just waiting for the review.