首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

怎么从github上获得源码

2013-08-01 
如何从github上获得源码1. If youre on windows, go to http://msysgit.github.com/ , download msysgit

如何从github上获得源码
1. If you're on windows, go to http://msysgit.github.com/ , download msysgit a installer with all default settings.


What is msysGit?

msysGit is the development environment to compile Git for Windows. It is complete, in the sense that you just need to install msysGit, and then you can build Git. Without installing any 3rd-party software.

msysGit is not Git for Windows; that is an installer which installs Git -- and only Git.

2. After you install, go to C:\Program Files\Git\, open Git Bash, in the console, you can use dos command to switch to a target disk and dir.

3. As I want to checkout source code from github, so I'll use clone first to download source code.

Michael@YANGXIAOMING-LT /d/cloudteam (master)$ git clone https://github.com/fabrician/oracle-11gR2-enabler.gitCloning into 'oracle-11gR2-enabler'...remote: Counting objects: 53, done.remote: Compressing objects: 100% (33/33), done.remote: Total 53 (delta 14), reused 53 (delta 14)Unpacking objects: 100% (53/53), done.


A dir oracle-11gR2-enabler will be generated under current dir, or you can change target dir name as this.

Michael@YANGXIAOMING-LT /d/cloudteam$ git clone https://github.com/fabrician/oracle-11gR2-enabler.git sforacleCloning into 'sforacle'...remote: Counting objects: 53, done.remote: Compressing objects: 100% (33/33), done.remote: Total 53 (delta 14), reused 53 (delta 14)Unpacking objects: 100% (53/53), done.


Now that all source code will be stored at <current_dir>/sforacle



4. If you want to have a GUI for git, please refer to this article: http://nathanj.github.io/gitguide/tour.html


详细的中文介绍, 请参考http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/

热点排行