Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to remove lines from a git commit
Avoiding certain lines, append them with "#gitignore" and add these files to your repo:
# .gitattributes
*.pp filter=gitignore
# .gitconfig
[filter "gitignore"]
clean = "sed '/#gitignore$/'d"
smudge = cat
Example line that shouldn't be included #gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.