In my case sudo
was the solution (or the problem).
So
git clone http://website.com/_git/project.git
[...] The requested URL returned error: 502
while
sudo git clone http://website.com/_git/project.git
works fine.
I have no idea what I set or installed bad so I needed sudo
. However I was very suprised as the error message didn“t lead me to that solution.