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
- i am using Visual studio and cloning using terminal
-
Open VS Code and the Terminal:
- Close any open files.
- Click the "View" menu, then select "Terminal."
-
Clone the Repository:
- In the terminal, run the following command to download the project:
git clone https://github.com/classifiedstudentkabir/Major-Project.git
- In the terminal, run the following command to download the project:
-
Navigate to the Project Folder:
- Use the
cdcommand to enter the project directory:cd Major-Project - type
lsto check where is your clone is saved
- Use the
-
Check Your Branch:
- Run
git statusto see your current branch. You should be on themainbranch.git status
- Run
If a teammate has uploaded new files after you cloned the repository, you need to pull the latest changes to your local machine.
- Pull the Latest Changes:
- From within the
Major-Projectdirectory, run this command to download and merge new files from the remote repository:git pull origin main
- From within the
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.
-
Add Your Changes:
- Stage all your new or modified files for a commit:
git add .
- Stage all your new or modified files for a commit:
-
Commit Your Changes:
- Create a new commit with a descriptive message:
git commit -m "Your descriptive message here"
- Create a new commit with a descriptive message:
-
Push Your Changes:
- Upload your committed changes to the
mainbranch on GitHub:git push origin main
- Upload your committed changes to the
⚠️ 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"