我正在开发一个基于 CakePHP 的项目,该项目位于 GitHub 上。 我的项目在 Bitbucket 上托管。他们都使用 git 。基本上我想在我的Bitbucket存储库中创建一个'fork'(我不知道我是否使用了正确的术语,因为我是 的新手),按顺序无需下载所有CakePHP zip / tar并替换文件夹,然后提交并推送,但可能使用合并(?)。
谢谢!
解决方案现在不可能在不同网站上发送拉请求。我在Bitbucket问题跟踪器中为此添加了一项功能请求:#3288 。如果你想跟踪这一点,我建议你自己添加一个关注者。然而,你仍然可以将源代码从GitHub移动到Bitbucket,而无需下载任何zip文件或tar包。你从GitHub创建一个克隆并推送到Bitbucket:
$ git clone github/cakephp/cakephp $ git push git@bitbucket:mg / cakephp.git master我创建了 mg / cakephp 作为Bitbucket中的空Git存储库。这样,您可以将变更集从GitHub推送到Bitbucket。
I'm working on a project based on CakePHP, that's hosted on GitHub. My project is being hosted on Bitbucket. Both of them use git. Basically I'd like to create a ‘fork’ (I don't know if I'm using the right terms, since I'm new to git) of CakePHP in my Bitbucket repository, in order to be able to get the updates without the need to download all the CakePHP zip/tar and replace the folder, then commit and push, but maybe with a ‘merge’(?).
Thank you!
解决方案It's not possible to send "pull request" across different sites today. I've added a feature request for this in the Bitbucket issue tracker: #3288. I suggest you add yourself as a follower if you want to track this.
However, you can still move the source from GitHub to Bitbucket without having to download any zip files or tarballs. You make a clone from GitHub and push to Bitbucket:
$ git clone github/cakephp/cakephp $ git push git@bitbucket:mg/cakephp.git masterI created mg/cakephp as an empty Git repository in Bitbucket first. That way you can push/pull changesets from GitHub to Bitbucket.
更多推荐
从GitHub分叉到Bitbucket
发布评论