Skip to content

Instantly share code, notes, and snippets.

View TwoWheelCoder's full-sized avatar

TwoWheelCoder

View GitHub Profile
@TwoWheelCoder
TwoWheelCoder / git-smudge-clean-filter.sh
Created July 30, 2025 13:09 — forked from TomerFi/git-smudge-clean-filter.sh
Git smudge-clean script for using as filter for mutiple reducted values for various file types in various repositories.
#!/bin/bash
#####################################################################################################
# This script is meant to be used as a global smudge-clean filter for removing sensitive data #
# from your commits. #
# #
# 1. Place this script in an acceisble path, i.e. ~/scripts/git-smudge-clean-filter.sh. #
# #
# 2. Populate the 'mapArr' using what you need hidden as the key, and the replacment as the value. #
# DO NOT use same values for multiple keys (this will work only in one direction). #