Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 1.59 KB

File metadata and controls

79 lines (65 loc) · 1.59 KB

Getting Started

Follow these instructions to clone the project, create a branch, make changes, and sync your branch with the latest code.

Prerequisites

  • Node.js (v16 or above)
  • Git

Installation

  1. Clone the repository to your local machine:

    git clone <repository-url>
    cd <project-folder>
  2. Install project dependencies:

    npm install

Creating a New Branch

Before making any changes, create your own branch:

git checkout -b your-branch-name

Example:

git checkout -b feature/new-feature

Making Changes and Pushing to Your Branch

  1. Make your desired changes to the project files.

  2. Add the changes to staging:

git add .
  1. Commit your changes:
git commit -m "Your commit message"
  1. Push your branch to the remote repository:
git push origin your-branch-name

Pulling Latest Changes from Main Branch

To keep your local branch updated with the latest changes from the main branch:

git checkout main
git pull origin main

Merging Main into Your Branch

After pulling the latest changes, switch back to your branch and merge the main branch into it:

git checkout your-branch-name
git merge main

Resolving Merge Conflicts (if any)

If there are merge conflicts, resolve them manually and then commit the resolved files:

git add .
git commit -m "Resolved merge conflicts"

Final Push

Once everything is merged and conflicts are resolved, push the changes to your branch:

git push origin your-branch-name