Welcome to DeePMD-kit!
You can either make a code contribution, help improve our document or offer help to other users. Your help is always appreciated. Come and have fun!
You can start from any one of the following items to help improve deepmd-kit
- Smash a bug
- Implement a feature or add a patch, whatever you think deepmd-kit is missing
- Browse issues, find an issue labeled enhancement or bug, and help to solve it.
See here for some before-hand heads-up.
See here to learn how to contribute.
You can start from any one of the following items to help improve DeePMD-kit Docs:
- Fix typos or format (punctuation, space, indentation, code block, etc.)
- Fix or update inappropriate or outdated descriptions
- Add missing content (sentence, paragraph, or a new document)
- Translate docs changes from English to Chinese
You can help other users of deepmd-kit in the following way
- Submit, reply to, and resolve issues
- (Advanced) Review Pull Requests created by others
Currently, we maintain two main branch:
- master: stable branch with version tag
- devel : branch for developers
See here for coding conventions, API and other needs-to-know of the code.
Please perform the following steps to create your Pull Request to this repository. If don't like to use commands, you can also use GitHub Desktop, which is easier to get started. Go to git documentation if you want to really master git.
- Visit the project: https://github.com/deepmodeling/deepmd-kit
- Click the Fork button on the top right and wait it to finish.
-
Clone your own repo, not the public repo (from deepmodeling) ! And change the branch to devel.
git clone https://github.com/$username/deepmd-kit.git # Replace `$username` with your GitHub ID git checkout devel
-
Add deepmodeling's repo as your remote repo, we can name it "upstream". And fetch upstream's latest codes to your workstation.
git remote add upstream https://github.com/deepmodeling/deepmd-kit.git # After you add a remote repo, your local repo will be automatically named "origin". git fetch upstream # If your current codes are behind the latest codes, you should merge latest codes first. # Notice you should merge from "devel"! git merge upstream/devel
-
Modify your codes and design unit tests.
-
Commit your changes
git status # Checks the local status git add <file> ... # Adds the file(s) you want to commit. If you want to commit all changes, you can directly use `git add.` git commit -m "commit-message: update the xx"
-
Push the changed codes to your original repo on github.
git push origin devel
-
Get your local master up-to-date with upstream/master.
cd $working_dir/deepmd-kit git fetch upstream git checkout master git rebase upstream/master
-
Create a new branch based on the master branch.
git checkout -b new-branch-name
-
Modify your codes and design unit tests.
-
Commit your changes
git status # Checks the local status git add <file> ... # Adds the file(s) you want to commit. If you want to commit all changes, you can directly use `git add.` git commit -m "commit-message: update the xx"
-
Keep your branch in sync with upstream/master
# While on your new branch git fetch upstream git rebase upstream/master
-
Push your changes to the remote
git push -u origin new-branch-name # "-u" is used to track the remote branch from origin
- Visit your fork at https://github.com/$username/deepmd-kit (replace
$username
with your GitHub ID) - Click
pull requests
, followed byNew pull request
andCompare & pull request
to create your PR.
Now, your PR is successfully submitted! After this PR is merged, you will automatically become a contributor to DeePMD-kit.
E-mail: [email protected]