Skip to content

Create Contributions.md. #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions Contributions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# First Contribution
<p>This project is for those who are new to open-source and looking for make their first contribution.<p>
<p>Follow the steps below :- </p>

***

# Git Setup Guide
## To initialise Git, write
```bash
git init
```

## 1. Configure your local Git
```bash
git config --global user.name "github username"
```

```bash
git config --global user.email "email address"
```

## 2. Go to the first-contribution repository and Fork it.
* 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


## 3. Switch to your Git bash window, and enter the following :

* Clone the Forked project on your local system



* Make the changes


## 4. Creating a Pull request
### Create a branch

* 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

```bash
git branch branch_name
```

* Checkout to the created branch

```bash
git checkout branch_name
```


* Now add the files using the git command

```bash
git add .
```
* Commit the changes to the local project

```bash
git commit -m "Added my data"
```

* Push the changes to your forked github repo
```bash
git push origin branch_name
```

## 5. Final Steps
* 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 !