I don’t know but may be someday, someone is asking you to clone your git repo because their application is coded that way and require the dir then you can blindly (not exactly blindly) follow bellow steps:
1. Create the project and go to the “source code management” option.
2. Fill the required Repository Url and Credentials for it
4. Mention the intended branch
5. Click on “Add” under “Additional Behaviours”. See you have a huge list … more options than your life have (It’s a joke)
6. Select the option “Check out to a sub-directory” and enter your dir name:
7. Run your job and you can find this subdir created in the job workspace having git repo cloned under it.