A sample repository for git bisect.
evenodd.sh is a bash script which determines the parity of an argument.
Here are the expected behaviors.
$ ./evenodd.sh 1
odd
$ ./evenodd.sh 2
evenHowever, at a some point, it started to display even for any values.
$ ./evenodd.sh 1
even
$ ./evenodd.sh 2
evenYou have to identify the commit that introduced the bug with git bisect.
git branch root origin/root
git bisect start main root
git bisect run ./test.sh
git bisect reset