如何从github上获得源码

1. If you're on windows, go to http://msysgit.github.com/ , download msysgit a installer with all default settings.


[b]What is msysGit?[/b]

[color=red]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.[/color]

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 [b]clone [/b] first to download source code.

Michael@YANGXIAOMING-LT /d/cloudteam (master)
$ git clone https://github.com/fabrician/oracle-11gR2-enabler.git
Cloning 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 sforacle
Cloning 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: [url]http://nathanj.github.io/gitguide/tour.html[/url]


详细的中文介绍, 请参考[url]http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/[/url]
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值