Reputation: 173
I have a Azure Web Site that is linked with a Git Repository (in the deployments tab). How can I remove the repository and the link ? (I want to set up TFS deployment)
Upvotes: 9
Views: 6428
Reputation: 2125
yes we can remove azure repositories from our local git using
git remote -v
git remote rm azure
thats it, it will remove azure git repo from the local git.
Upvotes: 0
Reputation: 21
I just found an elegant solution ... and was able to delete several GB of data
1) login to new Azure portal
2) open the required App Service dashboard
3) in the left column there's a Console (in the DEVELOPMENT TOOLS)
4) back screen with command prompt opened
5) type:
rm -rf .git
Upvotes: 1
Reputation: 43203
The Azure portal now directly supports doing this:
There is actually a way you can do this now, though it's a little manual. See the Setting up continuous deployment from the portal after a deployment has happened section in this page.
Basically, run this from the command line, using the same username/password that you use for git deployment:
curl --user yourusername -X DELETE https://yoursitename.scm.azurewebsites.net/live/scm
In the future, we will make this a simple action from the Azure portal.
Upvotes: 10
Reputation: 8606
I think there is no way to delete Git Repository link and set TFS again. for this you need to delete this website and recreate it, after that you can set up TFS deployment.
Upvotes: 10