Updated MD file

This commit is contained in:
2025-09-10 17:54:59 +05:30
parent ae37ccf579
commit 6a0d306fbf
10 changed files with 51 additions and 0 deletions

View File

@ -137,3 +137,53 @@ Version control (like Git) keeps one central version of the file, records who ma
---
## Part 1: Viewing File History
## git log -- filename.extension
![.git log -- example.txt](git_log_example.png)
## git log -p -- filename.extension
![git log -p](git_log_example_p1.png)
![git log -p](git_log_example_p2.png)
![git log -p](git_log_example_p3.png)
## git log --oneline -- filename.extension
![git log --oneline](git_log_example_oneline.png)
---
How many commits modified this file?
5
What differences do you see when adding the -p option?
It shows the detailed changes made to the file during the commit
---
## Part 2: Viewing File History with Blame
## git blame -- filename.extension
![.git blame -- assignment.txt](git_blame.png)
## git blame -L 1,5 -- filename.extension
![git blame -L 1,5](git_bame_L.png)
## git blame -e -- filename.extension
![git blame -e](git_blame_e.png)
---
Who changed each line of the file?
Gokul
How does -L help when the file is large?
It acts as a selection area to select the lines between the given numbers
What extra information does -e provide?
It shows the commiters email id

Submodule git clone gokul/git-practice-Gokul added at b88b3e4605

BIN
git_bame_L.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
git_blame.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

BIN
git_blame_e.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
git_log_example.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
git_log_example_oneline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
git_log_example_p1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

BIN
git_log_example_p2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
git_log_example_p3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB