This documentation contains a set of guidelines to help you during the contribution process.
Thank you for helping out and remember, no contribution is too small.
Below you will find the process and workflow used to review and merge your changes.
You should have git installed in your pc for these steps.
- Fork this Repository. This will create a Local Copy of this Repository on your Github Profile.
- If you have already forked the project, update your fork before working.
create and merge a pull request to push changes from this repository to your fork.the direction of arrow shows the code pushing direction. always name this pull request as Fork Sync
$ git remote update
$ git checkout <branch-name>
to clone the project, open cmd where you want to place your project.
$ git clone https://github.com/Dragsters/Nutrihelp.git
- Take a look at the Existing Issues or create your own Issues!
- Wait for the Issue to be assigned to you after which you can start working on it.
- Note : Every change in this project should/must have an associated issue.
Create a new branch with the issue name to identify the issue your addressing.
example - you are assigned issue 21
create a new branch with name issue-21
on local switch to that branch
$ git checkout origin/issue-21
# OR
$ git checkout issue-21
- Work on the issue(s) assigned to you.
- Add all the files/folders needed.
- After you've made changes or made your contribution to the project add changes to the branch you've just created by:
# To add all new files to branch Branch_Name
$ git add .
- To commit give a descriptive message for the convenience of reviewer by:
# This message get associated with all files you have changed
$ git commit -m "message"
- NOTE: A PR should have only one commit. Multiple commits will be squashed.
- When your work is ready and complies with the project conventions, upload your changes to your fork:
# To push your work to your fork repository
$ git push -u origin <Branch_Name>
- Go to your repository in browser and click on compare and pull requests. notice the arrow direction and repository names.
Then fill the mandatory details according to given template.
- Voila! Your Pull Request has been submitted and will be reviewed and merged.🥳
watch youtube. Kuch nhi ho sakta tumhara.
- we always recommend to use gui tools which came with IDE and editors for using git.
- It always takes time to understand and learn. So, do not worry at all.