Monthly Archives: June 2012

Deploying a website to Azure using Git results in error 501 on refs? The solution…

Currently, I am playing with the new Windows Azure Web Sites feature. Although the free version lacks custom host names support (which is promised to be possible in the future by Scott Guthrie), it is a pleasure to work with. I am currently working on a small website, based on WordPress. The development version is currently hosted on Azure using this manual: https://www.windowsazure.com/en-us/develop/php/tutorials/website-w-mysql-and-git/.

When deploying one of my PHP websites to Windows Azure today using Git (git push azure master), I stumbled upon an error.

It said something about refs not being implemented. I still don’t know what was wrong, but executing git pull azure master did the trick for me. The result of this operation? Already up-to-date (as expected). After pulling, I was able to execute a successful git push azure master call

Happy coding!