Compare commits
6 Commits
6be5cb4f32
...
feature/tr
| Author | SHA1 | Date | |
|---|---|---|---|
| 2912e22546 | |||
| 63e67802a8 | |||
| 36e4019ced | |||
| 1da6f094d0 | |||
| 19a309af94 | |||
| 24faea97fe |
47
ASSIGNMENT-04-09-2025.md
Normal file
@@ -0,0 +1,47 @@
|
||||
## Viewing File History
|
||||
|
||||
## 1. git log -- assignment.txt
|
||||
|
||||
|
||||

|
||||
|
||||
## 2. git log -p -- assignment.txt
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 3. git log --oneline -- assignment.txt
|
||||
|
||||

|
||||
|
||||
## How many commits modified this file?
|
||||
|
||||
3 commits
|
||||
|
||||
## What differences do you see when adding the -p option?
|
||||
|
||||
Shows detailed changes for each commit in the file.
|
||||
|
||||
## Viewing File History with Blame
|
||||
|
||||
## 1. git blame assignment.txt
|
||||
|
||||

|
||||
|
||||
## 2. git blame -L 1,5 assignment.txt
|
||||
|
||||

|
||||
|
||||
## 3. git blame assignment.txt
|
||||
|
||||

|
||||
|
||||
## Who changed each line of the file?
|
||||
Renejit
|
||||
|
||||
## 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.
|
||||
BIN
git blame -L 1,5 assignment.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
git blame -e assignment.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
git blame assignment.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
git log--filename.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
git log--oneline--filename.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
git log-p--filename.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
git log-p--filename1.png
Normal file
|
After Width: | Height: | Size: 51 KiB |