9 Commits

Author SHA1 Message Date
dc8ae9051e Added images for Viewing File History and Blame 2025-09-11 12:23:31 +05:30
e9870f64f7 new line added 2025-09-10 22:06:03 +05:30
9c3547a940 check log 2025-09-10 21:57:30 +05:30
58880219ea added new txt 2025-09-10 21:55:56 +05:30
2745965e15 new line added 2025-09-10 21:54:20 +05:30
cba5dc492d new txt added 2025-09-10 21:50:08 +05:30
071d2cf8a6 added to git 2025-09-10 21:49:13 +05:30
46c4db4c17 created new file 2025-09-10 21:47:54 +05:30
5c23bb7dcb create new branch 2025-08-23 09:45:20 +05:30
9 changed files with 34 additions and 0 deletions

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

@ -0,0 +1,26 @@
## Part 1: Viewing File History
![alt text](<git log --example.png>)
![alt text](<git log -p -- example.txt.png>)
![alt text](<git log --oneline -- example.txt.png>)
## How many commits modified this file?
7 commits
## 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
![alt text](<git blame example.txt.png>)
![alt text](<git blame -L 1,5 example.txt.png>)
![alt text](<git blame -e example.txt.png>)
## Who changed each line of the file?
Ajishini, Solomon
## 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 chages in the file.

7
example.txt Normal file
View File

@ -0,0 +1,7 @@
New file created
Added to git
Commit message
check the status
Switch to new branch
Check log
Added new line in the feature/testcase branch

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
git blame example.txt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
git log --example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

1
new_branch.txt Normal file
View File

@ -0,0 +1 @@
Create new branch