Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samadpls/opensource
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.
https://github.com/samadpls/opensource
collaborate git github hacktoberfest open-source
Last synced: 2 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/samadpls/opensource
- Owner: samadpls
- License: mit
- Created: 2022-08-18T19:04:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-13T18:49:06.000Z (8 months ago)
- Last Synced: 2024-06-13T21:53:41.739Z (8 months ago)
- Topics: collaborate, git, github, hacktoberfest, open-source
- Homepage:
- Size: 467 KB
- Stars: 34
- Watchers: 1
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Open Source Contribution
![]()
![]()
![]()
![]()
This repository will guide you through the process of contributing to open source on GitHub.
## Table of Contents
- [Getting Started](#getting-started)
- [Install Git](#install-git)
- [Git Setup](#git-setup)
- [Contributing](#contributing)
- [Fork the Repository](#fork-the-repository)
- [Create a Branch](#create-a-branch)
- [Submit a Pull Request](#submit-a-pull-request)### Install Git
Click [![Git](https://img.shields.io/badge/π¨πΌβπ»Git-000?)](https://git-scm.com/downloads) to install Git on your machine.
### Git Setup
To avoid any errors, follow these steps after installing Git:
1. Open a terminal and run the following command to set your Github username:
```ruby
git config --global user.name "username"
```1. Set your Github email with the following command:
```bash
git config --global user.email "[email protected]"
```
> Note: Make sure to do this only during the first time installing Git.### Fork the Repository
1. Fork this repository by clicking the fork button. This will create a copy of the repository in your own account.
1. Go to your account and open the forked repository. Click on the code button to copy the link.
![]()
1. Run the following command to clone the repository to your machine:**Example**
```bash
git clone https://github.com/your-username/opensource.git
```1. Change the directory to the newly cloned repository:
```bash
cd opensource
```### Create a Branch
It is best practice to create a new branch. Run the following command in the terminal:
```ruby
git checkout -b anyname
```### Open the name.md File
While still in the terminal, open the `name.md` file (located inside the opensource folder).
1. Add your username and Github profile link to the `name.md` file.
2. Save the file and go back to the terminal.
3. Run the following command to stage the changes:#### Example
```ruby
git add .
```4. Commit the changes with a descriptive message, using your username:
make sure to use **"commas "** after -m
```bash
git commit -m "added (your_github_username) in the name.txt"
```#### Example:
```ruby
git commit -m "added (samadpls) in the name.txt"
```5. Push the changes to the remote branch with the following command:
#### Finally
```ruby
git push origin -u your-branch-name
```If the above command gives an error, run the following command instead:
```ruby
git config --global push.autoSetupRemote true
```**if error not resolve watch this video**
YouTube## Submit a Pull Request
Go to your Github account and you will see the option to create a pull request. Merge the changes into your repository and then create a pull request.
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.
`mention issue #60 in PR description`
Congratulations, you now know how to contribute to open source!| **Contributor** |
| ---------------- |
||
**If you stuck somewhere or getting any error you can also check the YouTube video**
HELP
Inspired by First-contribution