I have TFS 2015, my issue just appeared after adding more teams into my team project with explicit permissions. So when I start the build eather using CI or manually it displays
Syncing repository: ProjectName (Git)
Starting fetch...
Response status code does not indicate success: 404 (Not Found).
Prepare repository failed with exception.
I've added the read permission to my collection build service account but with no luck.
If there is no solution to this problem, is there any way to reset all permissions to default