Tech Thursday Assignment - 04-09-2025 #3
Reference in New Issue
Block a user
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 loggit blamePart 1: Viewing File History
example.txt).git log -- example.txtgit log -p -- example.txtgit log --oneline -- example.txtQuestions to answer in your notes:
-poption?Part 2: Viewing File History with Blame
example.txtby adding several lines in multiple commits.git blame example.txtgit blame -L 1,5 example.txtgit blame -e example.txtQuestions to answer in your notes:
-Lhelp when the file is large?-eprovide?Part 3: Merging Branches
Modify
example.txtand commit the change.Switch back to
mainbranch and modify the same file in a different way, then commit.Merge
feature/feature-1intomain:Questions to answer in your notes:
git log --graph --oneline --allshow after the merge?Submission