HF RL Explorer

Task: Get the Current Branch Name in Git

Task: Get the Current Branch Name in Git: a task in Terminal-Lego-15k (Harbor dataset). You are working in a Git repository and need to retrieve the name of the current branch programmatically. Write a shell script that outputs only the current Git branch name to a file.

The task

You are working in a Git repository and need to retrieve the name of the current branch programmatically. Write a shell script that outputs only the current Git branch name to a file.

Part of PrimeIntellect/Terminal-Lego-15k.