-
-
Save webee/dc0e8c5895fd545edf6a9e1e390e3442 to your computer and use it in GitHub Desktop.
Git ignore binary files
This file contains hidden or 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
# Ignore all | |
* | |
# Unignore all with extensions | |
!*.* | |
# Unignore all dirs | |
!*/ | |
### Above combination will ignore all files without extension ### | |
# Ignore files with extension `.class` & `.sm` | |
*.class | |
*.sm | |
# Ignore `bin` dir | |
bin/ | |
# or | |
*/bin/* | |
# Unignore all `.jar` in `bin` dir | |
!*/bin/*.jar | |
# Ignore all `library.jar` in `bin` dir | |
*/bin/library.jar | |
# Ignore a file with extension | |
relative/path/to/dir/filename.extension | |
# Ignore a file without extension | |
relative/path/to/dir/anotherfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment