From 4f19dbc47a00f146e3f3f4376e9c0354006fcf39 Mon Sep 17 00:00:00 2001 From: Gokul Subramonian Date: Tue, 2 Sep 2025 11:04:00 +0000 Subject: [PATCH] Update gitassignment.md --- gitassignment.md | 160 ++++++++++++++++++++++++----------------------- 1 file changed, 82 insertions(+), 78 deletions(-) diff --git a/gitassignment.md b/gitassignment.md index 0217db1..828fb70 100644 --- a/gitassignment.md +++ b/gitassignment.md @@ -1,79 +1,83 @@ -## Git Assignment -## 1.Git Version Check - -## what is git and version control - Version Control: - - Version control is a system used to record and manage changes made to files or code over time. It helps you to: -Keep track of modifications: Identify what was changed, when it was changed, and who made the changes. -Recover from errors: Restore previous versions if something goes wrong. -Git is a type of distributed version control system. Enable to work even without an internet -connection and provide powerful tools for managing code changes. - -## Real-life example where multiple people edit the same file: -In a project many person can work a same project we can track who is making what changes are made so we use git to track the changes. - -## Why is version control better than emailing files back and forth? -In email we can`t tarck the changes in the code.But in git we track the changes like who make it,time and old version of code. - - -![alt text]() - -## 2. Installing Git & Configuring User Info - - -![alt text]() -![alt text]() - -## 3. Initializing a Repository - -![alt text]() - -## 4.Working Directory, Staging, and Commits - -![alt text]() - -## 5. Adding & Committing Files - -![alt text](add.png) -![alt text]() - -## 6. Viewing Commit Logs & Diffs - -![alt text]() -![alt text]() - ![alt text]() - ![alt text]() - -## 7. Creating & Switching Branches -![alt text]() - -![alt text]() - -![alt text]() -![alt text]() - -## 8 Git clone - -![alt text]() - -## 9. Adding & Managing Remotes - -![alt text]() - -## 10. Pushing & Pulling Changes - -![alt text]() -![alt text]() - -## 11. Ignoring Files with .gitignore - -![alt text]() -Working Directory and staging: - -![alt text]() - -Git status Before gitignore -![alt text]() -Git status after gitignore +## Git Assignment +## 1.Git Version Check + +## what is git and version control + Version Control: + + Version control is a system used to record and manage changes made to files or code over time. It helps you to: +Keep track of modifications: Identify what was changed, when it was changed, and who made the changes. +Recover from errors: Restore previous versions if something goes wrong. +Git is a type of distributed version control system. Enable to work even without an internet +connection and provide powerful tools for managing code changes. + +## Real-life example where multiple people edit the same file: +In a project many person can work a same project we can track who is making what changes are made so we use git to track the changes. + +## Why is version control better than emailing files back and forth? +In email we can`t tarck the changes in the code.But in git we track the changes like who make it,time and old version of code. + + +![alt text]() + +## 2. Installing Git & Configuring User Info + + +![alt text]() +![alt text]() + +## 3. Initializing a Repository + +![alt text]() + +## 4.Working Directory, Staging, and Commits + +![alt text]() + +## 5. Adding & Committing Files + +![alt text](add.png) +![alt text]() + +## 6. Viewing Commit Logs & Diffs + +![alt text]() +![alt text]() + ![alt text]() + ![alt text]() + +## 7. Creating & Switching Branches +![alt text]() + +![alt text]() + +![alt text]() +![alt text]() + +## 8 Git clone + +![alt text]() + +## 9. Adding & Managing Remotes + +![alt text]() + +## 10. Pushing & Pulling Changes + +![alt text]() +![alt text]() + +## 11. Ignoring Files with .gitignore + +![alt text]() + +Working Directory and staging: + +![alt text]() + +Git status Before gitignore + +![alt text]() + +Git status after gitignore + ![alt text]() \ No newline at end of file