Git对POSIX功能的依赖在Windows上仍然是一个问题吗? [英] Is Git's reliance on POSIX features still an issue on Windows?

查看:101
本文介绍了Git对POSIX功能的依赖在Windows上仍然是一个问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据我的阅读,Git似乎严重依赖于POSIX特定的功能,从而导致Windows上的兼容性问题.但是,我不特别了解Git使用的POSIX功能无法在Windows上轻松复制.

From what I've read, Git seems to rely heavily on POSIX-specific features, causing compatibility problems on Windows. However, I don't understand specifically what POSIX features Git uses which cannot be replicated easily on Windows.

由于这个问题,我一直很犹豫在Windows计算机上开始使用Git. Git使用什么POSIX功能,这仍然是一个问题吗?像msysGit这样的项目如何避免这些问题?

Because of this issue, I've been very hesitant to start working with Git on my Windows computer. What POSIX features does Git use, and is this still an issue? How have projects like msysGit managed to circumvent these problems?

推荐答案

是的,Git确实依赖POSIX系统,但请注意

Yes, Git does rely on a POSIX system, but be advised that POSIX specifies a lot of things: a shell environment (i.e. command line environment), operating system interfaces (i.e. libraries that implement file I/O, threading, etc.), regular expressions, directory structure (i.e. /dev/null, /tmp), and utilities.

考虑到我如何定义POSIX,应该遵循的是Git实际上依赖于所有POSIX.但是,如果您阅读了Git开发人员的 CodingGuidelines ,您将看到Git使用POSIX作为实现广泛可移植性的一种方式.

Given how I've defined POSIX, it should follow that Git relies on practically all of POSIX. However, if you read the Git developers' CodingGuidelines, you'll see that Git uses POSIX as a means of implementing wide portability.

msysGit可以解决兼容性问题,因为它是POSIX环境.

msysGit gets around the compatibility problems because it is a POSIX environment.

在Windows上运行Git通常意味着在POSIX运行时环境之上运行.这是适用于Windows的Git 的基础.首先启动Git BASH,然后在该环境中运行Git命令.

Running Git on Windows generally means running on top of a POSIX run-time environment. This is the basis for Git for Windows. You first start Git BASH, and in that environment you run Git commands.

我可以向您保证Git以这种方式可以正常工作!

I can assure you that Git works fine in this manner!

如果POSIX和命令行让您犹豫不决,则可能需要探索 Atlassian SourceTree 适用于Windows的GitHub .

If POSIX and the command line make you hesitant, you may want to explore Git UIs like Atlassian SourceTree or GitHub for Windows.

这篇关于Git对POSIX功能的依赖在Windows上仍然是一个问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆