Compare commits
8 Commits
5c23bb7dcb
...
dc8ae9051e
Author | SHA1 | Date | |
---|---|---|---|
dc8ae9051e | |||
e9870f64f7 | |||
9c3547a940 | |||
58880219ea | |||
2745965e15 | |||
cba5dc492d | |||
071d2cf8a6 | |||
46c4db4c17 |
26
ASSIGNMENT-04-09-2025.md
Normal file
26
ASSIGNMENT-04-09-2025.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
## Part 1: Viewing File History
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
## 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
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## 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
7
example.txt
Normal 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
|
BIN
git blame -L 1,5 example.txt.png
Normal file
BIN
git blame -L 1,5 example.txt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
git blame -e example.txt.png
Normal file
BIN
git blame -e example.txt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
git blame example.txt.png
Normal file
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
BIN
git log --example.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
git log --oneline -- example.txt.png
Normal file
BIN
git log --oneline -- example.txt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
git log -p -- example.txt.png
Normal file
BIN
git log -p -- example.txt.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
Reference in New Issue
Block a user