This repository targets beginners to guide them about open source and help them make their first contribution.
1- Fork the repository
To fork the repository click on the fork button on the top right corner of the repository section. It will create a copy of that repository in your account.
2- Clone the repository
i. Copy the URL of the repository.
ii. To copy the contents of the repository in your local
cmd: git clone <paste the copied url from github>
opt: open your cloned repository in an editor(ide)
3- Create a new branch (name of the branch should be your username)
cmd: git checkout -b <your-new-branch-name>
4- Read the repository's contributing guide before starting any editing.
5- Make changes in the contributing branch.
to preview all changes.
use- git diff
6- Stage the changes
use: git add <your-full-file-name> (with path)
(to stage all files, use git add.
)
7- Commit the changes
use: git commit -m "Your message"
8- Push the changes
use: git push -set-upstream origin <ypur-file-name>
9- Pull request(requesting the project creator to add/merge your changes to the main repository)
first: ensure that you make PR to the right branch.
second: add relevent title and description to your pull request that explains the changes you
made appropriately.
third: click on create pull request button.
10- Now you just have to wait for the project creator/owner to review your request and merge your changes to the original code. Congratulations on doing your very first contribution to an open source.