Github淘宝,用git和eclipse组合阅读优秀开源项目源代码
2011-10-31 07:38:13 来源: 评论:0 点击:
很多程序员都会通过阅读别人写的源代码来汲取灵感,我也是其中一个。最近开始使用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来浏览源代码再好不过了。
评论排行
- ·好书推荐《C++程序设计语...(1)
- ·Symfony2看上去很美,生...(0)


