Skip to content

Instantly share code, notes, and snippets.

@nerzid
Created October 30, 2024 00:23
Show Gist options
  • Save nerzid/baf2c03058d6d8867f859ade6c44d497 to your computer and use it in GitHub Desktop.
Save nerzid/baf2c03058d6d8867f859ade6c44d497 to your computer and use it in GitHub Desktop.
text file to use delete or redact ips, urls, and ports for git filter repo command
regex:\bhttps?://[^\s]+==>[REDACTED_URL]
regex:\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b==>[REDACTED_IP]
regex:\b:\d{1,5}\b==>[REDACTED_PORT]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment