From 1242b4695cd4d6fecfdb0682728acc9a92b4eea6 Mon Sep 17 00:00:00 2001 From: Asaph Date: Wed, 20 Aug 2025 16:53:34 +0530 Subject: [PATCH] new update --- GIT_ASSIGNMENT.md | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/GIT_ASSIGNMENT.md b/GIT_ASSIGNMENT.md index f223af6..7953686 100644 --- a/GIT_ASSIGNMENT.md +++ b/GIT_ASSIGNMENT.md @@ -1,34 +1,36 @@ ## Git Assignment -## Git Version Check +## 1. What is Git and Version Control + +1. Git helps multiple people work on the same files without losing each other's changes or creating a mess. +2. Four students writing a group essay where each person writes different sections, but sometimes they need to edit the same paragraphs. +3. Email creates confusion with multiple file versions and lost work, while Git tracks every change and lets everyone work together safely. + +## 2. Installing Git & Configuring User Info ## ![alt text](image.png) -## Git Status +3. Initializing a Repository ![alt text](image-1.png) --- -## Git list +4. Working Directory, Staging, and Commits ![alt text](image-2.png) --- -## Git Add - ![alt text](image-3.png) --- -## Git commit - ![alt text](image-4.png) -- -## Git Log +5. Adding & Committing Files ## ![alt text](image-5.png) @@ -38,6 +40,8 @@ ## ![alt text](image-6.png) +6. Viewing Commit Logs & Diffs + ## Git Log (graph) ## ![alt text](image-8.png) @@ -45,16 +49,3 @@ ## Git Diff ## ![alt text](image-9.png) - -## Git Diff (commit1 vs commit2) - ---- - -### Notes: - -1. **Git Version Check** – Displays the currently installed Git version on your system. -2. **Git Status** – Shows the current working tree status, including staged/unstaged changes. -3. **Git Add** – Stages file changes, moving them into the index ready for the next commit. -4. **Git Log** – Displays commit history. -5. **Git Log (oneline/graph)** – Shows simplified commit history. -6. **Git Diff** – changes between commits or working directory states.