Task: Find the Nearest Parent Branch of a Git Branch
Task: Find the Nearest Parent Branch of a Git Branch: a task in Terminal-Lego-15k (Harbor dataset). Create a shell script that identifies the parent branch of a given Git branch and determines the commit in the parent branch from which the given branch diverges. This is useful for implementing Git…
The task
Create a shell script that identifies the parent branch of a given Git branch and determines the commit in the parent branch from which the given branch diverges. This is useful for implementing Git hooks that enforce rebase workflows.
Part of PrimeIntellect/Terminal-Lego-15k.