1
votes

If I commit some code on a Windows machine with an NTFS hard drive into git, and then check it back out again in a another directory, will it retain my original Owner, NTFS permissions ACLs, and file attributes?

If so will it automatically break inheritance to do so, or does it require a setting of some sort?

1
In and of itself, GIT is a multiplatform tool, and as such necessarily doesn't know anything about anyone's file systems or ACL's. The local file system into which you fetch file(s) is incidental. Suppose you got a file on a Windows box, but then later edited it on a Linux box...the Windows permission info would be meaningless.David W
@DavidW So I guess this goes for ACLs in Linux too?leeand00
Surely, because the two are fundamentally dissimilar entities. They may perform similar function in each environment, but a Windows ACL is meaningless to Linux, and vice-versa.David W

1 Answers

4
votes

GIT is a platform-independent code management tool, and can be run on numerous different operating systems. As a result, it is necessarily indifferent to any particular platform's notions of security or access control information. Security metadata about a file in Windows would be meaningless in, for example, a Linux environment, and vice-versa.