Skip to content
Example of using a git filter to hide its identity in configuration files.
Haskell Nix
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.org
Setup.hs
clean-git.cabal
clean-git.nix
default.nix
stack.yaml

README.org

clean-git

Play with git filter and identity. sample with https://github.com/apeyroux/emacs.nix

$HOME/.gitconfig

[filter "identity"]
	clean = clean-git -c -n Px -f Alexandre -m alex@xxxx.io -o MyORG
	smudge = clean-git -s -n Px -f Alexandre -m alex@xxxx.io -o MyORG
	required = true

.gitattributes in ours projects :

emacs.el filter=identity

usage

Missing: (-n|--name NAME) (-f|--firstname FIRSTNAME) (-o|--org ORG)
(-m|--mail MAIL)

Usage: clean-git (-n|--name NAME) (-f|--firstname FIRSTNAME) (-o|--org ORG)
                 (-m|--mail MAIL) [-c|--clean] [-s|--smudge]
  git clean identity
You can’t perform that action at this time.