- Published on
.gitignore
Keep 1 file and ignore others in a directory
.gitignore
# Ignore all file in a directorydirectory/*
# Keep only this file!directory/file-to-keep.ext
Keep 1 file and ignore others in a directory
.gitignore
# Ignore all file in a directorydirectory/*
# Keep only this file!directory/file-to-keep.ext