Skip to content

Instantly share code, notes, and snippets.

@c0ldlimit
Created November 16, 2012 17:15
Show Gist options
  • Save c0ldlimit/4089105 to your computer and use it in GitHub Desktop.
Save c0ldlimit/4089105 to your computer and use it in GitHub Desktop.
Git: Ignore all but a few files
# http://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files
# Ignore everything
*
# But not these files...
!script.pl
!template.latex
!.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment