开发者

How to load / open / suck an repository from GitHub into GitX?

I downloaded Git and GitX for mac and installed it. Now, just for fun, I want to know how I could obtain an repository from GitHub like http://github.com/zoul/Finch.git ??

For me all this Git stuff looks like I have a client and connect to a server in order to get som开发者_运维问答e data from some repository. Like FTP, well not really. But similar.

Just one problem: Where to enter that URL? Is there some field for that? Some hidden command? I did manage to create a new project / repository on my mac, but now I have an empty window and no option to suck down that code from GitHub.


What you're looking for is the git clone operation. It creates a local copy of (clones) a specified repository.

The very most basic form of its syntax is as follows:

git clone git://path.to/repository/with/project.git somelocalname

which will clone the remote repo located at git://path.to/repository/with/project.git into a local repository in the folder somelocalname.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜