Contribute to Open Source using Git
In this tutorial, I will explain how to use Git to contribute to open source projects.
When I started using Github , i was messed up with all the commands clone,push,commit etc . I wasted lot of time watching different videos , reading blogs but none of them helped out :/ So , I decided to write one blog that will help the beginners to start with their favourite projects on github❤
GitHub is a Git repository hosting service, but it adds many of its own features. While Git is a command line tool, GitHub provides a Web-based graphical interface.
Now,without wasting more time take a look at this simplest guide for git ✔
Setup:
Download git for Windows-
Download git for Linux-
Download git for OSX-
Step 1:
Fork your own copy of the project to which you want to contribute.
On the right corner of the project , you will see the fork button. This step will create a new copy of the project that will be owned by you .
After fork , you will see yourUserName/ProjectName as new repository in your profile .You will get something like this after fork-

Step 2:
Clone the project on which you want to work.In GitBash(in desired directory), write clone command.
git clone url
Clone url from forked copy of the original project.
Step 3:
After clone , open the project in suitable IDE like Android Studio , Sublime.Now you can make desired changes in the forked copy on your editor . Always work on a new branch and don’t mess up the master branch.
To check all the available branches-
git branch
Step 4:
After making changes in the forked copy , You can check the modified files using the command- git status
To add all the changed files —
git add .
Step 5:
Commit all the changes using the command -
git commit -m “ commit message”
Step 6:
Push all the commited files using the command -
git push -u origin master

Step 7:
Now you have done some changes in your forked copy of original project 🎉
All you need to do is click on the New Pull Request button on left side of the github page .
And Congratulations! You have created your first Pull request :) Want to try all above steps on a Project for Trial to have a clear idea of the process? No worries!
Try your hand at this project : https://github.com/SaumyaSingh1/MyRecyclerview (If you don’t understand the code , try making some changes in UI itself , I will soon update the README of the file )
Participate in one of the best Open Source Program BOSS ( Bountiful Open Source Summer ) https://boss.codingblocks.com/ organised by Coding Blocks which i believe is one of the best institute for Programming Courses not only in Delhi but all over India 💯
That’s all! I hope you enjoyed reading. Please 👏 (clap) and share if you find this post useful .

Originally published at https://blog.codingblocks.com on July 29, 2019.