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.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:
http://nathanj.github.io/gitguide/tour.html
详细的中文介绍, 请参考
http://gogojimmy.net/2012/01/17/how-to-use-git-1-git-basic/