{"thread":{"id":"32944","subject":"Can git restrict source files ?","startedAt":"2013-02-19T16:06:07Z","lastAt":"2013-02-19T17:55:20Z","messageCount":3,"participants":["Juan Pablo","Matthieu Moy","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"209831","messageId":"DE551AEA-5C7D-4A2D-8AB4-33195EF351F8@gmail.com","threadId":"32944","inReplyTo":null,"subject":"Can git restrict source files ?","fromName":"Juan Pablo","fromEmail":"juanpablo8517@gmail.com","sentAt":"2013-02-19T16:06:07Z","receivedAt":"2013-02-19T16:06:07Z","isPatch":false,"sender":{"key":"juanpablo8517@gmail.com","avatar":null},"body":"Hi, \n\nI have a question, can i control the access to specific files or folders ?? I need that some developers can't see some source files, thank you very much for your time\n\nEnviado desde mi iPhone"},{"id":"209832","messageId":"vpq4nh8p9bj.fsf@grenoble-inp.fr","threadId":"32944","inReplyTo":"DE551AEA-5C7D-4A2D-8AB4-33195EF351F8@gmail.com","subject":"Re: Can git restrict source files ?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2013-02-19T16:17:20Z","receivedAt":"2013-02-19T16:17:20Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Juan Pablo <juanpablo8517@gmail.com> writes:\n\n> Hi, \n>\n> I have a question, can i control the access to specific files or\n> folders ?? I need that some developers can't see some source files,\n> thank you very much for your time\n\nNo, you can't. You can use e.g. gitolite to set up access control for a\nbranch, but Git needs access to the complete tree.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"209844","messageId":"CACBZZX7tHpUzW8pKjLi_4qm8w-n=FjResyRwZPK9qsyUzqpsMw@mail.gmail.com","threadId":"32944","inReplyTo":"DE551AEA-5C7D-4A2D-8AB4-33195EF351F8@gmail.com","subject":"Re: Can git restrict source files ?","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2013-02-19T17:55:20Z","receivedAt":"2013-02-19T17:55:20Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Tue, Feb 19, 2013 at 5:06 PM, Juan Pablo <juanpablo8517@gmail.com> wrote:\n> I have a question, can i control the access to specific files or folders ?? I need that some developers can't see some source files, thank you very much for your time\n\nNo, but what you can do is to split these up into different\nrepositories. E.g. where I work we have a puppet.git and a\nsecrets.git, the latter contains passwords and other secret data, the\nformer just uses macros to include that and is accessible to everyone.\n"}]}