This repository will help you to contribute open source on Github. It will cover all the steps you need to follow to do any kind of open-source contribution.
To avoid any sort of error follow the steps, After installing Git on your machine, Open a terminal and run the following git command:
- Github username
git config --global user.name "username"
- Github email
git config --global user.email "[email protected]"
Fork this repository by clicking the fork button. This will create a copy of this repository in your account.
- Open a terminal and run the following git command:
Example - step 1
git init
Now go to your account and open the forked repository from your account and click on the code button, you will see a link to copy it.
- step 2
link should be what you copied
git clone https://github.com/your-username/opensource.git
- step 3
cd opensource
It is a best practice to create a new branch, write this in your terminal:
git switch -c anyname
without closing the terminal
- 1: add your username and profile link of github in the below name.md (which inside the opensource folder)
save the file and go to your terminal again:
git add .
make sure to use "commas " after -m
git commit -m "added (username) in the name.txt"
write your username inside (username)
git commit -m "added (samadpls) in the name.txt"
git push origin -u your-branch-name
if above command give u an error, try this instead:
git config --global push.autoSetupRemote true
if error not resolve watch this video YouTube
You will see the this
After merging it in your repository, open my repository again and create a pull request by going on the pull request option, then you will see this option
set dropdown compare option and select your repo, and send pull request.
Congratulation now you know how to do opensource✨
Contributor |
---|
If you stuck somewhere or getting any error you can also check the YouTube video
HELP
Inspired by First-contribution