Compare commits
15 Commits
feature/as
...
main
Author | SHA1 | Date | |
---|---|---|---|
fcd60f6174 | |||
d7b7bf6869 | |||
9780a29da2 | |||
4ad4593de8 | |||
d9f12151a2 | |||
06f4ad109d | |||
53d8158a78 | |||
8941b1faf8 | |||
5633539d29 | |||
c742d31f06 | |||
baa3fdb40d | |||
dc7fc33063 | |||
f97b76b325 | |||
ec0f5f8e12 | |||
6a0d306fbf |
@ -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 -p -- filename.extension
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
## git log --oneline -- filename.extension
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
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 -L 1,5 -- filename.extension
|
||||
|
||||

|
||||
|
||||
## git blame -e -- filename.extension
|
||||
|
||||

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

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
---
|
||||
|
BIN
conflict3.png
Normal file
After Width: | Height: | Size: 81 KiB |
14
example.txt
@ -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
|
||||
|
1
git clone gokul/git-practice-Gokul
Submodule
BIN
git_bame_L.png
Normal file
After Width: | Height: | Size: 25 KiB |
BIN
git_blame.png
Normal file
After Width: | Height: | Size: 87 KiB |
BIN
git_blame_e.png
Normal file
After Width: | Height: | Size: 111 KiB |
BIN
git_fast_fwd.png
Normal file
After Width: | Height: | Size: 74 KiB |
BIN
git_log_example.png
Normal file
After Width: | Height: | Size: 60 KiB |
BIN
git_log_example_oneline.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
git_log_example_p1.png
Normal file
After Width: | Height: | Size: 61 KiB |
BIN
git_log_example_p2.png
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
git_log_example_p3.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
git_merge_conflict_2.png
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
git_merge_graph_oneline.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
merge_conflict_1.png
Normal file
After Width: | Height: | Size: 19 KiB |