# How to contribute code?

**URL:** <https://community.openenergymonitor.org/t/how-to-contribute-code/12094>\
**Category:** Development\
**Created:** [4 October 2019 17:45 UTC](https://community.openenergymonitor.org/t/how-to-contribute-code/12094 "2019-10-04T17:45:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyberward](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/cyberward/32/11303_2.png) [@cyberward](https://community.openenergymonitor.org/u/cyberward)\
**Post date:** [4 October 2019 17:45 UTC](https://community.openenergymonitor.org/t/how-to-contribute-code/12094/1 "2019-10-04T17:45:51Z")

</div>

I wanted to create a pull request for a bug, and wondering what process you are using. I know git. Are people creating a fork, and pushing there? Do you need to request privileges to create new branches in the project? If there is a doc, sorry, I missed it, please direct me to it.

The specific issue is this recent commit: [Added CS Solar Kit device & cleaned up split phase meter device by CircuitSetup · Pull Request #48 · emoncms/device · GitHub](https://github.com/emoncms/device/pull/48/commits/ccaad7918463a7b70bf85fccc6cc5f90c465e527?file-filters%5B%5D=) where the JSON is not valid in the solar file. It needs a couple of commas.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [4 October 2019 17:52 UTC](https://community.openenergymonitor.org/t/how-to-contribute-code/12094/2 "2019-10-04T17:52:32Z")

</div>

I tend to take a fork of the repo. Create a branch - make changes - commit/push to your fork and then do the PR from there to the master branch on `upstream`.

If it is a small change I often just edit directly on GitHub and do the PR from there.
