When cloning new repository in git facing the issue as shown below

Solution
- Run Git Bash as administrator.
- Change the directory to the folder we need to clone.
- Run the following command:
git config --system core.longpaths true git config --global core.longpaths true