assignment file & screenshot

This commit is contained in:
2025-08-21 10:52:31 +05:30
parent eb51e5d203
commit 605f939d11
14 changed files with 79 additions and 3 deletions

View File

@ -1,3 +1,79 @@
Visited the Git-Training-Hub organization on Git Comorin.
Created a new repository named git-practice-Arjun with no README, .gitignore, or license.
Created repository without README, .gitignore, license files
<!-- @format -->
# Git Assignment
## 1. What is Git and Version Control
What problem does Git solve?
Git tracks changes in files (especially code) and helps multiple people collaborate without overwriting each others work. It lets you save versions, go back if something breaks, and merge changes safely.
Real-life example:
A school group project where everyone writes different parts of the same report. Git combines everyones edits into one final version without losing work.
Why is Git better than emailing files?
Emailing creates many confusing copies (e.g., report_final.docx, report_final2.docx). Git keeps a single version, records who changed what, and merges edits automatically, making collaboration easier and safer.
## Git Version Check
![Git version check](git_version.png)
---
## 2. Installing Git & Configuring User Info
![Git status](git_config.png)
---
## Git List
![Git status](git_config_list.png)
---
## 3. Initializing a Repository
## Git Init
![Git add](git_init.png)
---
## 4. Working Directory, Staging, and Commits
## Git Add
![Git add](git_add_new_file_in_local.png)
![Git add](git_file_staged.png)
![Git add](git_first_commit.png)
![Git add](git_status.png)
---
## 5. Adding & Committing Files
## Git Log
![Git log](git_log.png)
---
## 6. Viewing Commit Logs & Diffs
## Git Log (graph)
![Git log graph](git_oneline_log.png)
---
## Git Diff
![Git diff](git_diff.png)
---
## Git Diff (commit1 vs commit2)
![Git diff between two commits](git_compare_commit.png)
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

BIN
git_compare_commit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
git_config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
git_config_list.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
git_diff.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
git_file_staged.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
git_file_staged_status.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
git_first_commit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
git_init.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
git_log.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
git_oneline_log.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
git_status.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

BIN
git_version.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB