My first open-source contribution….

Gajindu Bandara
2 min readMay 4, 2021

I started contributing via GitHub. That was a new experience for me….

As I mentioned in my previous blog I contributed to the Sefglobal website. First of all, I forked the SEF site repository from my Github account and I cloned the repository to my computer. The command for cloning repository is git clone (URL of the repository). After cloning that, I read issues in the issue section and chose an issue that I am capable to solve.

As the first step, I created a new branch in my repository with the git branch (branch name) command (you can use any name as the branch name). Then I moved to the new branch by git checkout (branch name). I used the intel IJ IDE to open & edit the project files.

After correcting the issue I used the git diff command to check the things that I have changed. By using the git add (filename) command I added the new corrected files. Then after that, I committed the changes with git commit -m “(commit message)”. I pushed the branch with the git push origin (branch name) command to my Github account. As the final step, I set up the pull request through my Github account and just clicked the create pull request button. That’s it !!!

My first pull request - https://github.com/sef-global/sef-site/pull/837

--

--