Skip to main content

Submit Code

  1. First, fork the upstream repository into your own repository.

  2. Clone your repository to your local:

    git clone<your-github-id>/incubator-streampark.git
  3. Add remote repository address, name it upstream:

    git remote add upstream
  4. View repository:

    git remote -v

At this time, there will be two repositories: origin (your own repository) and upstream (remote repository).

  1. Get/Update remote repository code:

    git fetch upstream
  2. Synchronize remote repository code to local repository:

    git checkout origin/dev
    git merge --no-ff upstream/dev
  3. If remote branch has a new branch such as dev-1.0, you need to synchronize this branch to the local repository:

    git checkout -b dev-1.0 upstream/dev-1.0
    git push --set-upstream origin dev-1.0
  4. After modifying the code locally, submit it to your own repository:

    git commit -m 'commit content'
    git push
  5. Submit changes to the remote repository

  6. On the github page, click "New pull request".

  7. Select the modified local branch and the branch you want to merge with the past, click "Create pull request".

  8. Then the community Committers will do CodeReview, and then he will discuss some details (including design, implementation, performance, etc.) with you. When everyone on the team is satisfied with this modification, the commit will be merged into the dev branch

  9. Congratulations! You have become a contributor to Apache StreamPark!