Tech Thursday Assignment - 04-09-2025 #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Git Assignment: Viewing History, Blame and Merging
Objective
This assignment will help you practice:
git log
git blame
Part 1: Viewing File History
example.txt
).git log -- example.txt
git log -p -- example.txt
git log --oneline -- example.txt
Questions to answer in your notes:
-p
option?Part 2: Viewing File History with Blame
example.txt
by adding several lines in multiple commits.git blame example.txt
git blame -L 1,5 example.txt
git blame -e example.txt
Questions to answer in your notes:
-L
help when the file is large?-e
provide?Part 3: Merging Branches
Modify
example.txt
and commit the change.Switch back to
main
branch and modify the same file in a different way, then commit.Merge
feature/feature-1
intomain
:Questions to answer in your notes:
git log --graph --oneline --all
show after the merge?Submission