This project is for those who are new to open-source and looking for make their first contribution.
Follow the steps below :-
git init
git config --global user.name "github username"
git config --global user.email email-address
-
A fork is a rough copy of a repository. Forking a repository allows you to freely test and debug with changes without affecting the original project. One of the excessive use of forking is to propose changes for bug fixing.
-
Click on Code Button and copy the URL of your forked Repository
-
Clone the Forked project on your local system
-
Make the changes
-
A branch is designed to encapsulate a group of changes. These changes might be thrown away, entirely rewritten or in the majority of cases they’ll be promoted into the main history of the codebase - via a merge.
-
Creating a branch
git branch branch_name
- Checkout to the created branch
git checkout branch_name
- Now add the files using the git command
git add .
- Commit the changes to the local project
git commit -m "Added my data"
- Push the changes to your forked github repo
git push origin branch_name
- Open your forked git repository, you will get a message like as shown in the figure (if not then refresh the page).
- Click on "Contribute"
- Now click on "Open pull request"
- Click on "Create pull request"
- Click on "Create pull request"
- You will get message which says that you have sucessfully made a pull request !