使用 Github 和同时解开

发布于 2024-09-11 06:03:46 字数 233 浏览 6 评论 0原文

有没有办法将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

半步萧音过轻尘 2024-09-18 06:03:46

您可以将这两个存储库设置为遥控器,并在它们之间进行推送/拉取; Git 是分散的,因此并不真正关心您是否有一个遥控器或多个遥控器。

http://www.kernel.org/pub/ software/scm/git/docs/git-remote.html

示例:

git remote add github [email protected]:username/reponame.git

然后...

git push github <branchname>
git pull github
git log github/<branchname>

等等...

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:

git remote add github [email protected]:username/reponame.git

and then...

git push github <branchname>
git pull github
git log github/<branchname>

etc...

时光是把杀猪刀 2024-09-18 06:03:46

创建您的 github 存储库,然后从 Unfuddle 本地存储库运行:

git remote add github [email protected]:YourUsername/YourReponame.git

其中 YourUsername 是您的 github 用户名,YourRepository 是您的存储库名称。设置 github 存储库后,上面填写的用户名和存储库名称的 URL 应该出现在您的 github 存储库页面上。

一切都如您所期望的那样工作,例如,推送:

git push github 

您对 Unfuddle 存储库的设置将像以前一样工作。

Create your github repository, then from your Unfuddle local repository, run:

git remote add github [email protected]:YourUsername/YourReponame.git

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:

git push github 

Your settings for the Unfuddle repository will work like before.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文