# https://git-scm.com/docs/gitattributes # enable this config via the command below # git config include.path ../.gitconfig # https://stackoverflow.com/questions/6557467/can-git-ignore-a-specific-line/16244817#16244817 [filter "ignoreLogStage"] # set `*.tsx filter=ignoreLogStage` in .gitattributes # ignore log code generated by https://github.com/Chakroun-Anas/turbo-console-log # git config --file src/.gitconfig filter.ignoreLogStage.clean 'perl -ne "print unless /^[\t ]*\/*[\t ]*console\.log\(.TCL:/"' clean = perl -ne \"print unless /^[\\t ]*\\/*[\\t ]*console\\.log\\(.TCL:/\" smudge = cat