Task: Determine the Default Branch of a Git Remote Repository
Task: Determine the Default Branch of a Git Remote Repository: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that determines the default branch (e.g., main , master , dev ) of a Git remote repository. The script should work for local Git repositories by inspecting the remote's…
The task
Write a shell script that determines the default branch (e.g., `main`, `master`, `dev`) of a Git remote repository. The script should work for local Git repositories by inspecting the remote's HEAD reference.
Part of PrimeIntellect/Terminal-Lego-15k.