Skip to content

Latest commit

 

History

History
81 lines (52 loc) · 1.94 KB

CONTRIBUTING.md

File metadata and controls

81 lines (52 loc) · 1.94 KB

How To Contribute

Start by forking the SolidUI GitHub repository, make changes in a branch and then send a pull request.

Set up your SolidUI GitHub Repository

There are three branches in the remote repository currently:

  • dev : the daily development branch. The daily development branch, the newly submitted code can be pulled to this branch, and the release version will be created from dev when the release is ready

  • x.x.x-release : the stable release version.

So, you should fork the dev branch.

After forking the SolidUI upstream source repository to your personal repository, you can set your personal development environment.

cd <your work direcotry>
git clone <your personal forked SolidUI repo>
cd SolidUI

Set git remote as upstream

Add remote repository address, named upstream

git remote add upstream https://github.com/CloudOrc/SolidUI.git

View repository:

git remote -v

There will be two repositories at this time: origin (your own warehouse) and upstream (remote repository)

Get/update remote repository code (already the latest code, skip it).

git fetch upstream

Synchronize remote repository code to local repository

git checkout origin/dev
git merge --no-ff upstream/dev

If remote branch has a new branch dev, you need to synchronize this branch to the local repository, then push to your own repository.

git checkout -b dev upstream/dev
git push --set-upstream origin dev

Create your feature branch

Before making code changes, make sure you create a separate branch for them.

git checkout -b <your-feature-branch> dev

Commit changes

After modifying the code locally, submit it to your own repository:

git commit -m 'information about your feature'

Push to the branch

Push your locally committed changes to the remote origin (your fork).

git push origin <your-feature-branch>