github - Only allow GIT commits while within a VPN -


is there way allow git repository worked on (checked-out, push commits, etc) within controlled environment, within vpn while using repository hosting service such github?

i read quora companies such facebook this, have own svn/git server , not rely on services such github or gitlab.

i found : https://stackoverflow.com/a/5507556/3138223 usage pattern discussed not mention creating pull requests real winner people allows extensive peer code review.

not really. whole point of git distributed system. if i've cloned git repository locally, can make commits wherever i'd like. prevent pushes networks other yours, you'd need configure pre-receive hook (so reject push if doesn't come network), github doesn't allow do, still wouldn't effective since on public internet origin ip can faked.

there versions of both github , gitlab can deployed internally, , being inaccessible other when on network can ensure no pushes nor pull requests can made when you're not on network. (note: commits can still made , pushed later) i'm assuming phrasing though you're not wanting option.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -