Wednesday, July 17, 2013

Enable Git for existing Azure WebSites

Overview

Azure Git deployment provides source control and versioning deployment.  The benefit is the ability to get the history of deployments and to rollback to any point in history.

If you have existing WebSites which is deployed by other means such as WebDeploy (Gallery) or FTP and want to enable Git publishing over those deployed files.   You can achieve it by the following.

Step 1 Enable Git Publishing on your site.

Logon to Azure Portal, select your site and navigate to the Dashboard.



Click "Setup up deployment from source control" and double click "Local Git repository"




Step 2 Download (Clone) deployed files to your local machine

Your site is now Git enabled.  You can now download (clone) the content of your site to your local machine.  This is done by simply using git clone command.  The Git URL for your site can be found on the Deployments page.


That's it.  After the clone is done, you can modify local files, git commit and deploy (git push) to your site.

1 comment:

  1. If you visit certain successful sites every month with the aim of making your own site as successful as you see, then you are among the countless website owners who do so. In real sense, you and all these other people tell themselves that if you do exactly what you have seen a certain website do to be successful and call yourself by a different name, your website will produce as much success as their website. See more clone a website

    ReplyDelete