HF RL Explorer

Task: Determine if a File is Git Tracked Using Shell Exit Code

Task: Determine if a File is Git Tracked Using Shell Exit Code: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that determines whether a given file is tracked by Git, using only the exit code of a Git command. The script should exit with code 0 if the file is tracked and exit…

The task

Write a shell script that determines whether a given file is tracked by Git, using only the exit code of a Git command. The script should exit with code `0` if the file is tracked and exit with a non-zero code if the file is not tracked.

Part of PrimeIntellect/Terminal-Lego-15k.