简体   繁体   English

Egit Eclipse收到提交

[英]Egit Eclipse Receive Commits

I am working in a team and and we are using Eclipse. 我正在一个团队中工作,我们正在使用Eclipse。 We all need to be able to work on the same project through Eclipse so have installed Egit and make a git repository. 我们所有人都需要能够通过Eclipse处理同一项目,因此已经安装了Egit并创建了一个git存储库。

How do they get my files which I have 'committed' onto their version of Eclipse. 他们如何获取我“提交”到其Eclipse版本的文件。 The files are viewable in our Bitbucket account. 这些文件可以在我们的Bitbucket帐户中查看。

Thanks 谢谢

add your team as users to the project on bitbucket. 将您的团队作为用户添加到bitbucket上的项目。 Then in eclipse: 然后在日食中:

File->Import->Git->Projects from git File-> Import-> Git->来自git的项目

on the next screen select Clone URI since you will be pulling it from bitbucket. 在下一个屏幕上,选择Clone URI因为您将从bitbucket中提取它。

On the next screen, each user will enter their credentials that can be found on bitbucket. 在下一个屏幕上,每个用户将输入可以在bitbucket上找到的凭据。 URI can be found on repo page for each user. 可以在回购页面上为每个用户找到URI。 eg https://username@bitbucket.org/username/project.git 例如https://username@bitbucket.org/username/project.git

then you just select the branch/project you want to import. 然后您只需选择要导入的分支/项目。

When users make a change, they can commit and push the change up to bitbucket. 用户进行更改时,他们可以提交更改并将其推送到bitbucket。 Other users will then have to do a pull to view the changes. 然后其他用户将不得不pull以查看更改。 This is done by right clicking on project and selecting: 通过右键单击项目并选择:

Team->Pull 团队->拉

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM