1

Is there any way to restrict git access from outside my office? For deployment on the server, I am using git cloud. I don't want to give code ( push/pull) access to deployment guy for their home.

Please let me know if there is any way we can restrict.

user831413
  • 141
  • 1
  • 8

2 Answers2

1

I'm not sure you can restrict based on IP address but, you could implement hooks to restrict writing to a branch. More information here: How to write a git hook to restrict writing to branch?

If you're really interested in using this feature, you can switch to Bitbucket. More information is here: IP Whitelisting on Bitbucket

Community
  • 1
  • 1
kgui
  • 4,015
  • 5
  • 41
  • 53
  • Can we use any other tool or repo system ? – user831413 Mar 17 '17 at 15:35
  • Well, if you're really interested in this feature, you can try Bitbucket. I believe they have this feature. Here's more info: https://blog.bitbucket.org/2017/02/28/big-strides-cloud-security-ip-whitelisting-required-2-step-verification-bitbucket/ – kgui Mar 17 '17 at 15:37
  • @user831413 was that helpful? – kgui Mar 17 '17 at 18:14
0

May be you can get some help from here about this issue. thie main idea behind this is "Limit access to visitors who are logged in or allowed by IP addresses. Includes many options for handling blocked visitors".

whoosis
  • 454
  • 7
  • 25