4 Commits

Author SHA1 Message Date
cdd1970950 added heading 2025-08-20 18:12:18 +05:30
06dcb8f553 add heading 2025-08-20 17:56:09 +05:30
780d737326 intiall commit 2025-08-20 17:12:00 +05:30
9078ab1a83 added assignment file 2025-08-20 16:46:20 +05:30
11 changed files with 42 additions and 3 deletions

BIN
add and commit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
add.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
git config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
git diff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
git installation.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
git log oneline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
git log.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
git version.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -1,7 +1,46 @@
Version Control:
## 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](<git version.png>)
## 2. Installing Git & Configuring User Info
![alt text](<git installation.png>)
![alt text](<git config.png>)
## 3. Initializing a Repository
![alt text](<initializing rep.png>)
## 4.Working Directory, Staging, and Commits
![alt text](<add.png>)
## 5. Adding & Committing Files
![alt text](add.png)
![alt text](<add and commit.png>)
## 6. Viewing Commit Logs & Diffs
![alt text](<git log.png>)
![alt text](<git diff commit1 commit 2.png>)
![alt text](<git diff.png>)
![alt text](<git log oneline.png>)

BIN
initializing rep.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB