Created
August 27, 2014 21:46
-
-
Save WhatsARanjit/c7b94a1dd3d70bb4ac83 to your computer and use it in GitHub Desktop.
How to remove lines from a git commit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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