使用 Github 和同时解开
有没有办法将 Github 和 Unfuddle 用于同一个存储库?我负责 Unfuddle 托管的一个存储库,但我不是主要所有者,它是私有的,因为它是正在进行的项目的一部分。进行更改时,我仍然需要更新存储库,但我想使用同一组文件来创建和更新与我自己的帐户关联的公共 Github 存储库,这可能吗?我想使用相同文件的原因是它是一个 WordPress 插件,在提交更改之前需要对其进行测试,因此我需要使用一组文件以免使问题复杂化。任何帮助将不胜感激。
Is there a way to use Github and Unfuddle for the same repo? I am responsible for a repo hosted at Unfuddle, but I am not the main owner and it's private because it's part of an ongoing project. I still need to update the repo there when changes are made, but I would like to use the same set of files to create and update a public Github repo associated with my own account, is that possible? The reason I want to use the same files is that it's a WordPress plugin and it needs to be tested before I commit changes, therefore I need to use one set of files to not complicate the matter. Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将这两个存储库设置为遥控器,并在它们之间进行推送/拉取; Git 是分散的,因此并不真正关心您是否有一个遥控器或多个遥控器。
http://www.kernel.org/pub/ software/scm/git/docs/git-remote.html
示例:
然后...
等等...
You can set up both the repositories as remotes and push/pull to and from both of them; Git is decentralized and thus doesn't really care about whether you have one remote or many.
http://www.kernel.org/pub/software/scm/git/docs/git-remote.html
Example:
and then...
etc...
创建您的 github 存储库,然后从 Unfuddle 本地存储库运行:
其中 YourUsername 是您的 github 用户名,YourRepository 是您的存储库名称。设置 github 存储库后,上面填写的用户名和存储库名称的 URL 应该出现在您的 github 存储库页面上。
一切都如您所期望的那样工作,例如,推送:
您对 Unfuddle 存储库的设置将像以前一样工作。
Create your github repository, then from your Unfuddle local repository, run:
Where YourUsername is your github user name, and YourRepository is your repository name. After setting up the github repository, the above URL with the user name and repository name filled in, should appear on your github repository page anyway.
Everything works like you'd expect, for example, pushing:
Your settings for the Unfuddle repository will work like before.