11 Commits

Author SHA1 Message Date
6bb3edc0f0 Added images for the log and blame 2025-09-11 13:23:29 +05:30
de8a308ff7 new commit 2025-09-11 12:28:32 +05:30
c0027ad789 merging 2025-09-11 12:05:10 +05:30
afae400903 added new file 2025-09-11 10:57:58 +05:30
5796b489dc Added file 2025-09-11 10:57:10 +05:30
690ce8df30 example txt 2025-09-11 10:56:05 +05:30
6975f9a2a4 added readme file; 2025-09-04 11:59:24 +05:30
dd41592d9d Add git ignore image 2025-09-04 10:12:54 +05:30
d17190adaa Added .gitignore 2025-09-01 12:41:29 +05:30
479c061720 Added .gitignore, updated GIT_ASSIGNMENT.md, and added git_push.png 2025-09-01 12:40:13 +05:30
dbd3af5881 Added screenshot 2025-09-01 12:33:11 +05:30
20 changed files with 56 additions and 19 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
secert.txt secret.txt

30
ASSIGNMENT-04-09-2025.md Normal file
View File

@@ -0,0 +1,30 @@
## Part 1: Viewing File History
![git log -- example.txt](<git log example.png>)
![git log -p -- example.txt](<git log example2.png>)
![git log -p -- example.txt](<git log example3.png>)
![git log --oneline -- example.txt](<git log online example.png>)
## How many commits modified this file?
3
## What differences do you see when adding the -p option?
Shows detailed changes for each commit in the file.
## Part 2: Viewing File History with Blame
![git blame example.txt](<git blame.png>)
![git blame -L 1,5 example.txt](<git balme 1.png>)
![git blame -e example.txt](<git balme 2.png>)
## Who changed each line of the file?
solomon, Murali
## How does -L help when the file is large?
To view the history of specific lines in a file.
## What extra information does -e provide?
To get the email id of the user who made the changes in the file.

View File

@@ -1,11 +1,4 @@
Step 1 : Create new empty repository
- Visited the Git-Training-Hub organization on Git Comorin
- Created a new repository named as git-practice-Solomon
- Created with no README, no .gitignore and no license
- ![]
## 1. What is Git and Version Control ## 1. What is Git and Version Control
Git is a Version Control System (VCS). Git is a Version Control System (VCS).
@@ -22,31 +15,33 @@ Old version ku back poganum na kashtam.
Example: Example:
School project / Google Docs → many people editing the same file School project / Google Docs → many people editing the same file
## 2. Installing Git & Configuring User Info ![alt text](git_version.png)
![alt text](git_version.png)
![alt text](git_config.png)
## 2. Installing Git & Configuring User Info
![alt text](git_config.png)
## 3. Initializing a Repository ## 3. Initializing a Repository
![alt text](git_init.png) ![alt text](git_init.png)
![alt text](git_status.png)
## 4. Working Directory, Staging, and Commits ## 4. Working Directory, Staging, and Commits
![alt text](git_commit.png)
![alt text](git_status.png)
## 5. Adding & Committing Files ## 5. Adding & Committing Files
![alt text](git_commit.png) ![alt text](git_commit.png)
## 6. Viewing Commit Logs & Diffs ## 6. Viewing Commit Logs & Diffs
![alt text](git_log_oneline.png)
![alt text](git_log.png) ![alt text](git_log.png)
![alt text](git_log_oneline.png)
![alt text](git_diff.png) ![alt text](git_diff.png)
![alt text](git_diff_commit1_commit2.png)
## 7. Creating & Switching Branches ## 7. Creating & Switching Branches
![alt text](git_branch.png) ![alt text](git_checkout.png)
![alt text](git_checkout.png) ![alt text](git_branch.png)
![alt text](git_switch.png)
## 8. Cloning a Remote Repository ## 8. Cloning a Remote Repository
![alt text](git_clone.png) ![alt text](git_clone.png)
@@ -55,3 +50,10 @@ Example:
![alt text](git_remote.png) ![alt text](git_remote.png)
## 10. Pushing & Pulling Changes ## 10. Pushing & Pulling Changes
![alt text](git_pull.png)
![alt text](git_push.png)
## 11. Ignoring Files with .gitignore
![alt text](git status before ignore.png)
![alt text](gitignore.png)

0
README.md Normal file
View File

4
example.txt Normal file
View File

@@ -0,0 +1,4 @@
Hello World
Today Tech Tharsday
Mark my words
lalaa

BIN
git balme 1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
git balme 2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
git blame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
git log example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
git log example2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
git log example3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
git log online example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

BIN
git_pull.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
git_push.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
git_switch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
gitignore.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -1,2 +1,3 @@
-This is my first note -This is my first note
-Hello everyone -Hello everyone
hello