15 Commits

Author SHA1 Message Date
fcd60f6174 Updated the MD file 2025-09-17 16:59:58 +05:30
d7b7bf6869 resolving the merge conflit 2025-09-17 16:43:10 +05:30
9780a29da2 merge learning with main branch 2025-09-17 16:36:46 +05:30
4ad4593de8 edited example file in learning 2025-09-17 16:32:44 +05:30
d9f12151a2 edited example file in main 2025-09-17 16:30:27 +05:30
06f4ad109d Merge branch feature/feature-1 2025-09-11 09:09:17 +05:30
53d8158a78 line added from main 2025-09-11 09:07:02 +05:30
8941b1faf8 line added from feature-1 branch 2025-09-11 09:06:09 +05:30
5633539d29 Merge branch 'feature/feature-1' 2025-09-11 09:03:57 +05:30
c742d31f06 sixth line added from main 2025-09-11 08:32:50 +05:30
baa3fdb40d sixth line added in example file 2025-09-11 08:30:53 +05:30
dc7fc33063 fifth line added 2025-09-11 00:01:50 +05:30
f97b76b325 fourth line added 2025-09-11 00:00:58 +05:30
ec0f5f8e12 example file updated 2025-09-10 23:41:01 +05:30
6a0d306fbf Updated MD file 2025-09-10 17:54:59 +05:30
16 changed files with 77 additions and 2 deletions

View File

@ -137,3 +137,67 @@ 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
---
## Part 3: Merging Branches
## git merge
![merge fast forward](git_fast_fwd.png)
![git_merge_graph_oneline](git_merge_graph_oneline.png)
![merge 1](merge_conflict_1.png)
![merge 2](git_merge_conflict_2.png)
![merge 3](conflict3.png)
---

BIN
conflict3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View File

@ -1,3 +1,13 @@
Tech Thursday assignment 3
Tech Thursday assignment 3 updated
date 10-09-2025
wednesday
<<<<<<< HEAD
wed
wednesday
assignment completed
=======
wednesday
Practise session extended to Thursday
date 11-09-2025
New text added
line added from feature-1 branch
>>>>>>> 06f4ad109d06b03307110696e71d6e7166aaf2b7

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_fast_fwd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 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

BIN
git_merge_conflict_2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
git_merge_graph_oneline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
merge_conflict_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB