Major-Project

Building a Major Project with a team on a Civil Contractor website. live preview is here https://classifiedstudentkabir.github.io/Major-Project/

https://civil-contractor-major-project.vercel.app/

https://civil-contractor-major-project-admi.vercel.app/index.html


How to clone this into your device editor app

  1. Open VS Code and the Terminal:
    • Close any open files.
    • Click the “View” menu, then select “Terminal.”
  2. Clone the Repository:
    • In the terminal, run the following command to download the project:
        git clone https://github.com/classifiedstudentkabir/Major-Project.git
      
  3. Navigate to the Project Folder:
    • Use the cd command to enter the project directory:
        cd Major-Project
      
    • type ls to check where is your clone is saved
  4. Check Your Branch:
    • Run git status to see your current branch. You should be on the main branch.
        git status
      

Staying Up-to-Date with the Team

If a teammate has uploaded new files after you cloned the repository, you need to pull the latest changes to your local machine.

  1. Pull the Latest Changes:
    • From within the Major-Project directory, run this command to download and merge new files from the remote repository:
        git pull origin main
      

Uploading Your Changes

When you have made changes (like adding a new folder or file) and want to upload them to the shared GitHub repository, you will use these commands.

  1. Add Your Changes:
    • Stage all your new or modified files for a commit:
        git add .
      
  2. Commit Your Changes:
    • Create a new commit with a descriptive message:
        git commit -m "Your descriptive message here"
      
  3. Push Your Changes:
    • Upload your committed changes to the main branch on GitHub:
        git push origin main
      

Set Your Git Identity (First-Time Setup)

⚠️ You only need to do this the very first time you use Git on your computer.

If you haven’t configured your Git identity before, run these commands in your terminal. This tells Git who you are for all future commits.

git config --global user.name "Your Full Name"
git config --global user.email "your_github_email@example.com"