首页 > 技术文档 > 正文

Github淘宝,用git和eclipse组合阅读优秀开源项目源代码
2011-10-31 07:38:13   来源:   评论:0 点击:

很多程序员都会通过阅读别人写的源代码来汲取灵感,我也是其中一个。最近开始使用git+eclipse组合来阅读一些开源项目的源代码。

很多程序员都会通过阅读别人写的源代码来汲取灵感,我也是其中一个。最近开始使用git+eclipse组合来阅读一些开源项目的源代码。

配置环境

首先安装git和eclipse, 在ubuntu下面可以用sudo aptitude 搜索软件包名git和eclipse.

我选择安装了git-core, git-gui, eclipse, eclipse-cdt

在系统安装eclipse的时候,会安装jre.

安装好了eclipse之后,我们要安装egit和aptana.

在eclipse里面可以用Install new software来安装egit和aptana

egit

http://download.eclipse.org/releases/indigo

aptana

http://preview.appcelerator.com/aptana/studio3/plugin/update/nightly/

下载源码仓库

我们从github上面下载一些git仓库回来。

FreeBSD

git clone git://github.com/freebsd/freebsd.git

Linux Kernel

git clone git://github.com/torvalds/linux.git

Apache Httpd

git clone git://github.com/apache/httpd.git

Symfony

git clone git://github.com/symfony/symfony.git

Zend Framework

git clone git://github.com/zendframework/zf2.git

 

用eclipse 阅读

接下来我们在eclipse里面新建项目,每个仓库建立一个项目。

用eclipse打开项目,进行浏览即可。

eclipse+aptana支持 php, js, python, c/C++, java等语言, 所以用Eclipse来浏览源代码再好不过了。

付费支持:   

如果您觉得这篇文章对您有用,欢迎您赞助一小笔金钱(0.99 RMB 或 USD)作为对作者的感谢。

相关热词搜索:Github 淘宝 eclipse

上一篇:sphinx搜索优化,压力测试报告
下一篇:开发流程:利用rsync同步开发目录至远程测试服务器

分享到: 收藏