windows下如何从git获取代码

发布于 2024-10-13 03:46:38 字数 608 浏览 5 评论 0原文

我在 Windows 中工作,因此对于 Git,我从 下载并安装了 msysGit-fullinstall-1.7.3.1 msysgit。并按照那里的指定运行。然后我尝试从 Android 获取图库应用程序开源项目,如我的 git 控制台中所指定:

git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git 

它显示以下错误 没有这样的文件或目录

alt text

我在这里错过了什么?我不知道这是否是在 Windows 上从 Android 获取代码的正确方法。

Me working in Windows, so for Git I downloaded and installed msysGit-fullinstall-1.7.3.1 from msysgit. And run as specified there. Then I tried to get Gallery application from Android open source project, as specified there in my git console:

git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git 

it shows the following error No such file or directory

alt text

What did I miss here? I don't if know is this the correct way to get code from Android on Windows.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

倾城泪 2024-10-20 03:46:38

您在屏幕截图中拼错了主机名。我刚刚使用您指定的主机名进行了尝试,并收到了消息:

$ git clone git://android.git.kernal.org/platform/packages/apps/Gallery.git
Cloning into Gallery...
android.git.kernal.org[0: 68.171.33.192]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

这是 kernel.org,而不是 kernal.org。

You misspelled the hostname in your screen capture. I just tried it with the hostname you specified, and received the message:

$ git clone git://android.git.kernal.org/platform/packages/apps/Gallery.git
Cloning into Gallery...
android.git.kernal.org[0: 68.171.33.192]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

It's kernel.org, not kernal.org.

我一直都在从未离去 2024-10-20 03:46:38

我还有 mysis git for windows(版本 1.7.3.1-preview20101002)...
我把你的命令粘贴进去了,它起作用了!

$ git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git
Cloning into Gallery...
remote: Counting objects: 1056, done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 1056 (delta 457), reused 1041 (delta 450)
Receiving objects: 100% (1056/1056), 952.46 KiB | 292 KiB/s, done.
Resolving deltas: 100% (457/457), done.

$ ls Gallery
Android.mk  AndroidManifest.xml  CleanSpec.mk  MODULE_LICENSE_APACHE2  NOTICE  res  src  tests

是否有可能防火墙阻止了您的连接? - http://support.github.com/讨论/repos/957-cant-clone-over-http-or-git

I also have mysis git for windows (version 1.7.3.1-preview20101002)...
I pasted your command in and it worked!

$ git clone git://android.git.kernel.org/platform/packages/apps/Gallery.git
Cloning into Gallery...
remote: Counting objects: 1056, done.
remote: Compressing objects: 100% (402/402), done.
remote: Total 1056 (delta 457), reused 1041 (delta 450)
Receiving objects: 100% (1056/1056), 952.46 KiB | 292 KiB/s, done.
Resolving deltas: 100% (457/457), done.

$ ls Gallery
Android.mk  AndroidManifest.xml  CleanSpec.mk  MODULE_LICENSE_APACHE2  NOTICE  res  src  tests

Is it possible there's a firewall blocking your connection? - http://support.github.com/discussions/repos/957-cant-clone-over-http-or-git

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文