Azure git push returning 403

会有一股神秘感。 提交于 2019-12-13 00:15:57

问题


This morning I wired in deployments via git for my Azure app. I setup git deployments for the app which gave me a git clone URL. I set that URL as a new remote for my git repository and named it azure-qa. The first time I pushed, git asked for credentials which I had set in Azure. Everything has worked perfectly from the start.

I just tried to push again via the command git push azure-qa master and I get the following error:

fatal: unable to access 'https://MYUSER@MYSITE.scm.azurewebsites.net:443/MYREPO.git/': The requested URL returned error: 403

When I try to hit https://MYSITE.scm.azurewebsites.net/ directly, I'm not prompted for my deployment credentials.

Why am I, all of the sudden, getting a 403 and how do I resolve it?


回答1:


I was able to resolve this problem and will post the answer for posterity. I ran git fetch azure-qa master and then re-ran my remote push and it worked. I have no idea what there would be to fetch because I'm the only developer doing development on that remote...



来源:https://stackoverflow.com/questions/43901802/azure-git-push-returning-403

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!