Re: [git-users] Push and pull permissions

2016-08-14 Thread Sharan Basappa
Thank you all. I think we already use gotolite in our org. though I don't 
know much about it.

We are trying to define continuous integration flow for our group and the 
above question is in that context.

Thanks again.

Regards,
Sharan 

-- 
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.


Re: [git-users] Push and pull permissions

2016-08-14 Thread Martin Møller Skarbiniks Pedersen
On 14 August 2016 at 19:34, Sharan Basappa  wrote:

> I would like to know if it is possible to provide push and pull
> permissions per user in Git.
> For example, user A can pull but cannot push to remote. Similarly, user B
> cannot pull but can only push to remote.
>
>
Thanks,
>
> It is possible by using a git-update hook on the remote.
Read this: https://git-scm.com/docs/githooks

But you can also just set up the filesystem permissions on the remote for
the same effect.

Regards
Martin

-- 
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.


Re: [git-users] Push and pull permissions

2016-08-14 Thread Philip Oakley
Hi Sharan,

It's sort of No, and a bit yes.

Git, by itself delegates all that sort of permissions & security stuff to other 
mechanisms.

It then depends on how you set up your remote server. 

If it's simply a data share, then its just permissions stuff, If its a git 
server daemon then it's who can access the daemon, which is unix permissions 
etc. 

You can look at gotolite which is designed for this stuff, but I've not used it.

Philip
  - Original Message - 
  From: Sharan Basappa 
  To: Git for human beings 
  Sent: Sunday, August 14, 2016 6:34 PM
  Subject: [git-users] Push and pull permissions


  I would like to know if it is possible to provide push and pull permissions 
per user in Git.
  For example, user A can pull but cannot push to remote. Similarly, user B 
cannot pull but can only push to remote.


  Thanks,

-- 
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.