I know in Linux you can use cd */ to get into the first available directory, however I need a way to get into the first directory using Git bash. I'm writing bash commands for Github Actions that will be run across Linux and Windows machines, so I need a cross-compatible solution.
Running cd */ on Git bash gives me the error bash: cd: too many arguments.