I was having the same problem too with git push command
in my Linux and just adding sudo
command at the start of the command solved it for me
The right command is sudo git clone example.git
For Windows users I guess you'll have to run the IDE or CMD/Powershell as administrator