开发者

How do I setup git on Windows?

I am very new to the terminologies: g开发者_运维百科it, repository and cloning.

I was able to search them all online and get pretty good grip on each (pretty simple stuff!). But what I am trying to figure out now is how to "run" these instructions:

Clone repository for app:

git clone git://github.com/SampleLink.git

Update submodules:

git submodule update --init

I am running Windows7. I tried to run init through command prompt, but no luck.

Are these supposed to be run as individual commands or as one following the other in sequence automatically?

I am just not sure how to run these on my Windows machine and cannot seem to get any of it to work.

The submodule is a file within the initial repository.

I'm sorry if this is a lame question, but I have never needed to run this type of setup before.


I would recommend installing msysgit in its "Git for Windows" instance:
Git-1.7.3.1-preview20101002.exe

I like using Option 2, only adding the git\bin directory to the PATH environment variable, but without overriding some built-in windows tools.

From there, git clone over http should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜