first you should install git then add these paths to the envirnoment variables
C:\Program Files\Git\bin\git.exe
C:\Program Files\Git\cmd
C:\Windows\System32
finaly right click on your IDE and Choose >> propertise >> copmatibility >>run this program as an admininstrator