NAME
restrictip - Restrict read and write access to the IP Address whitelist specified.
SYNOPSIS
git config acl.restrictip '127.0.0.1,10.0.0.0/8,192.168.0.0/16' # Allow Private Networks
# or --add to allow more IPs (instead of replacing the previous ACL setting)
git config --add acl.restrictip '2a00:1450:400e/56,96.0.0.0/8' # Supports both IPv4 and IPv6 CIDR
DESCRIPTION
The acl.restrictip can be a single IP address or a CIDR network block definition. Or a comma-delimited list of all networks you wish to allow. Default is no restrictions, meaning any IP will be allowed to push and pull.
This program will exit with non-zero and print message to STDERR if IP is not allowed. Or exit with 0 and no STDERR output if there are no problems or if there are no acl.restrictip directives configured.