使用GIT进行API管理 [英] API Management with GIT

查看:163
本文介绍了使用GIT进行API管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行了一个API管理实例。
我知道API管理拥有自己的GIT存储库。



我可以成功克隆,更改并推送更改到我的API管理GIT存储库。



我的问题是,我有我自己的VSTS Git Repository(我所有其他代码的源代码控制),我需要继续使用。我现在有2个GIT存储库(一个在VSTS中,另一个在API管理中)的事实令人困惑。

有人可以让我知道管理这两个存储库的过程是什么吗?或者有什么方法可以只使用我的,而不是使用API​​管理的GIT存储库?解析方案

如果你想合并 API管理转换为 VSTG


  • cd path / to / VSTG-repo

  • git remote add API-management path / to / VSTG -repo

  • git fetch API-management

  • git merge API-management / master #或者您想要合并的分支

  • git remote删除API管理


I have an API management instance running. I know API management has its own GIT repository.

I can successfully clone, change and push changes up to my API management GIT repository.

My issue is, I have my own VSTS Git Repository (source control for all my other code) that I need to keep using. The fact that I now have 2 GIT repositories (one in VSTS and one in API management) is confusing.

Can someone let me know what the process for managing these two repositories is? Or is there a way to use only mine and not use API management's GIT repository?

解决方案

If you would like to merge API management into VSTG:

  • cd path/to/VSTG-repo
  • git remote add API-management path/to/VSTG-repo
  • git fetch API-management
  • git merge API-management/master # or whichever branch you want to merge
  • git remote remove API-management

这篇关于使用GIT进行API管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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