Here's the contribution guide formatted for direct use in your README file:
# Contributing to Assignment Repository
Welcome! This repository is used to manage assignment submissions. To submit your assignment, please follow the steps below.
## How to Submit Your Assignment
1. **Fork the Repository:**
- Click on the "Fork" button at the top right corner of this repository’s page to create a copy of the repository in your GitHub account.
2. **Clone the Forked Repository:**
```bash
git clone https://github.com/YourUsername/AssignmentRepo.git
Replace YourUsername
with your GitHub username.
-
Create a New Branch:
git checkout -b YourRollNumber
Replace
YourRollNumber
with your actual roll number (e.g.,20123456
). -
Create a New File:
-
In the root directory, create a new file named
YourRollNumber.txt
. ReplaceYourRollNumber
with your actual roll number. -
Inside this file, you can add a simple statement like:
This is the submission for Roll Number: YourRollNumber
-
-
Commit Your Changes:
git add YourRollNumber.txt git commit -m "Add assignment submission for Roll Number YourRollNumber"
Replace
YourRollNumber
with your actual roll number. -
Push Your Branch to Your Forked Repository:
git push --set-upstream origin YourRollNumber
-
Create a Pull Request:
- Go to the original repository.
- Click on the "New Pull Request" button.
- Select the branch with your roll number and submit the pull request.
- Ensure your file is named exactly as your roll number with
.txt
extension. - Do not modify any other files in the repository.
- Ensure your pull request is created from a branch named after your roll number.
Thank you for your submission! We look forward to reviewing your pull request.
You can copy and paste this into your README file.