[英]Git pull release from one repository to another
我在本地从 Github 克隆了一个项目 X 并做了一些小改动,然后我创建了自己的存储库并将我的本地项目推送到它(使用 Azure DevOps)。
现在项目 X 中有一个新功能,我想将它拉到我的 Azure 存储库中。
有没有人有想法? 目前我在 repo X 和我的 Azure repo 之间没有任何关系,我想我应该使用 git remote 但我不知道具体如何
https://www.atlassian.com/git/tutorials/syncing
非常感谢 !
假设你有类似的东西, origin
设置为跟踪项目 X, azure
设置为跟踪你自己的 repo, master
是你的项目 X master 的本地副本,你的更改little-change
变化。 然后一步一步将是
git checkout master git pull origin master
git checkout little-change git pull azure little-change # probably just git pull is sufficient git merge master # fix conflict if there is any
git push azure little-change
您可以使用git remote -v
检查您的远程仓库名称和网址。 由于您已经从项目 X 克隆并推送到您自己的存储库。 这些应该已经在您的本地仓库中进行了跟踪。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.