Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 1.71 KB

CONTRIBUTING.md

File metadata and controls

72 lines (52 loc) · 1.71 KB

How to Contribute

We warmly welcome all those who wish to contribute to Online Book Sales. Whether you're looking to add a new feature or fix a bug, your help is greatly appreciated. Follow the steps below to start contributing:

Getting Started

  1. Create a folder at your desired location (usually on your desktop).

  2. Open Git Bash in the new folder.

  3. Initialize a Git repository by running the command:

    git init

Forking and Cloning the Repository

  1. Fork the repository on GitHub.

  2. Clone your forked repository of the project using:

    git clone https://github.com/<your_username>/OnlineBookSales.git

Setting Upstream and Updating Your Fork

  1. Navigate to the project directory:

    cd FunwithScience
  2. Add a reference(remote) to the original repository:

    git remote add upstream https://github.com/Trisha-tech/OnlineBookSales.git
  3. Check the remotes for this repository:

    git remote -v
  4. Update your fork with the latest changes from the upstream repository:

    git pull upstream main

Making Changes

  1. Create a new branch (prefer a branch name that relates to your assigned issue):

    git checkout -b <YOUR_BRANCH_NAME>
  2. Make your desired changes to the code base.

  3. Check your changes:

    git status
    git diff
  4. Stage your changes:

    git add . <\files_that_you_made_changes>
  5. Commit your changes:

    git commit -m "relevant message"
  6. Push the committed changes in your feature branch to your remote repository.