Eclipse intellij可以将Github用于同一项目 [英] eclipse intellij can use Github for same project

查看:174
本文介绍了Eclipse intellij可以将Github用于同一项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在GitHub中创建一个项目,并且两个使用不同IDE(例如Eclipse和Intellij)的团队可以使用github配置项目,并且可以同时在同一个项目上工作? 我已经搜索了它,但找不到合适的解决方案.

Is it possible to create one project in GitHub, and two teams who are using different IDE like Eclipse and Intellij can configure project with github and can work simultaneously on same project? I have searched it but not able to find proper solution for it.

推荐答案

是可以的. 大多数IDE确实会创建一些特定的项目文件夹,IDE会在其中存储项目的数据.例如本地构建路径等.

Yes this is possible. Most IDE's do create some specific project folders, where the IDE does store Data for your project. As example local build paths and so on.

Git提供.gitignore文件.

Git provides the .gitignore file.

在此文件中,您可以指定git将忽略哪些文件夹和文件.作为示例基于IDE的文件和文件夹.由于每个开发人员都可以使用自己喜欢的IDE,因此Git Porject本身不会包含基于本地IDE的文件.

In this file you can specify which folders and files git will ignore. As example IDE Based files and folders. Due that every developer can his favourite IDE and no local IDE based files will be in the Git Porject itself.

大多数IDE在项目中找到git文件夹时,都会自动更新或创建.gitignore文件.

Most IDE's will update or crate the .gitignore File automatic when they do find an git folder in the project.

您必须添加到.gitignore文件中的文件因IDE而异.这也取决于您的项目使用哪种编程语言.

What files you have to add to the .gitignore file is differs from IDE to IDE. It also depends on what Programm language your Project is written in.

在这里您可以找到有关gitignore文件的更多信息:

Here you can find more about the gitignore file:

如何忽略目录中的文件git吗?

http://www.bmchild .com/2012/06/git-ignore-for-java-eclipse-project.html

这篇关于Eclipse intellij可以将Github用于同一项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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