Oh, gosh - I've made a mistake in my question, I meant he should be capable 
of doing git *PUSH*. When I limit his write permission he can't do it, 
but... when he has a write privileges - he is able to delete whole 
repository...

On Tuesday, 28 June 2016 15:17:35 UTC+2, Philip Oakley wrote:
>
> ----- Original Message ----- 
>
> *From:* Michał Urban <javascript:> 
> *To:* Git for human beings <javascript:> 
> *Sent:* Tuesday, June 28, 2016 1:38 PM
> *Subject:* [git-users] Permissions problem.
>
> Hi, 
>
> I've got remote repository on my network share.
>
> I need to add permission to write for my workmate, so he can execute git 
> pull, but... now he can delete whole my .git folder (from Explorer/cmd, 
> etc.). I would like to limit his privileges to I guess... pushing. How to 
> achieve that?
>
>  
>
> I presume these are Windows sharing permissions.
> What you are looking for is read-only, so that the pull can do the fetch 
> from you, and then does the merge locally in his PC/share.
>  
> Make sure you understand the difference between a (remote) tracking 
> branch, and the "remote" itself. It is easy to confuse which parts are 
> truly local (on your PC), apparrently local (mapped shares with r/w 
> access), and properly remote (either served, or mapped drive with r/o)
>  
> Philip
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to