意外断开本地Git存储库与Deployment Center的连接 [英] Accidentally disconnected Local Git repo from Deployment Center

查看:67
本文介绍了意外断开本地Git存储库与Deployment Center的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我偶然从Deployment Center断开了本地Git存储库的连接,我想知道如何再次添加相同的存储库.

I Accidentally disconnected Local Git repo from Deployment Center, I would like to know how to add the same repo again.

我还想知道如何切换已部署的分支. (当我从应用程序服务断开存储库的连接时,我就是这样做的)

Also I would like to know how can I switch the branch that is deployed. (I was doing this when I disconnected the repo from the app service)

推荐答案

您可以再次重新配置Local Git,基本上按照与之前相同的步骤进行操作,请参阅文档部分以获取更多信息.更多细节: 从本地Git部署.

You could re-configure the Local Git again, basically go through the same steps as before, refer the document section for a more details: Deploy from local Git.

Y 您可以创建应用设置 称为"deployment_branch";带有要部署的分支的名称.

You can create an app setting called "deployment_branch" with the name of the branch to deploy.

其他信息:默认情况下,仅推送到;部署主控分支.但是您可以通过调用REST API来更改此设置 在Kudu服务上.一种简单的方法是使用  curl .看一眼 此文档: https://github.com/projectkudu/kudu/wiki/Deployment-branch .

Additional info: By default, only pushes to the master branch get deployed. But you can change this by calling a REST API on the Kudu service. One simple way to do this is to use curl. Take a look at this document: https://github.com/projectkudu/kudu/wiki/Deployment-branch.


这篇关于意外断开本地Git存储库与Deployment Center的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆