到位桶 - 推项目文件到一个空的Git仓库 [英] Bitbucket - Push project files to an empty Git repository

查看:356
本文介绍了到位桶 - 推项目文件到一个空的Git仓库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经到位桶上创建一个Git仓库。该库目前是空的。我有一个项目,在我的系统,我要推(使用Eclipse - EGit)到我创建的存储库。我该怎么做呢?

I have created a Git Repository on bitbucket. The repository is empty now. I have a project, in my system, that I want to push(using Eclipse - EGit) into the repository I created. How do I do it?

我不知道用命令行这样做的,所以,请给我与各自的细节,使用Eclipse的图形用户界面。任何可能有助于环节,也是AP preciated。

I have no knowledge of doing this by command line, so, please, give me the details with respective to using GUI of Eclipse. Any links that might help, also are appreciated.

谢谢...

推荐答案

Okie ..所以我想它了。

Okie.. So I figured it out.

步骤:

  1. 首先,创建一个新的工作空间。
  2. 在Eclipse中打开该工作区。
  3. 转至新建 - >其他 - > Git-> Git仓库
  4. 浏览到工作区,你刚刚创建。按照对话框中的步骤,完成它。
  5. 复制,现有的code,(SRC,水库等)到项目文件夹。
  6. 将项目导入工作区,文件 - >导入 - >常规 - >现有项目到工作区。
  7. 一旦应用程序构建,你将拥有该项目旁边没有头。
  8. 右键单击项目文件夹,进入Team->提交
  9. 输入的提交信息,也提交和推送。这将带您筛选的要求在URI到位桶。
  10. 从复制到位桶和粘贴克隆路径的URI路径,并完成对话框中的步骤。 (如果你到一个屏幕要求添加规格标题或类似的,选择主进行添加/更新标题,点击按钮,上面写着添加所有规格和完成它。)
  1. First, create a new workspace.
  2. Open that workspace in eclipse.
  3. Go to New->Other->Git->Git Repository
  4. Browse to the Workspace, you just created. Follow the steps in dialog and finish it.
  5. Copy, your existing code, (src, res, etc.,) into the project folder.
  6. Import the project into workspace, File->Import->General->Existing projects into workspace.
  7. Once the application builds, you will have NO HEAD beside the project.
  8. Right click on the project folder, Go to Team->Commit
  9. Enter Commit Message and do Commit And Push. This will take you to screen that asks for URI in bitbucket.
  10. Copy the clone path from bitbucket and paste in the URI path and complete the steps in the dialog. (If you get to a screen asking for Add Specs headers or similar, select the master for Add/Update header and click on button that says Add all specs and finish it.)

完蛋了。

请注意:::我没有那个熟悉Git的,所以,很可能,该步骤可能是也可能不是正确的方法还是做最简单的方法。但是,这么说,这些步骤为我工作。他们可能会为你工作了。

Note ::: I am not yet that comfortable with Git, so, probably, the steps may or may not be the correct way or the easiest way to do it. But, that said, these steps worked for me. They might work for you too.

希望这有助于..

这篇关于到位桶 - 推项目文件到一个空的Git仓库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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