Skip to content

Instantly share code, notes, and snippets.

@chichunchen
Created November 26, 2014 16:51
Show Gist options
  • Select an option

  • Save chichunchen/970a7e97c74a253a4503 to your computer and use it in GitHub Desktop.

Select an option

Save chichunchen/970a7e97c74a253a4503 to your computer and use it in GitHub Desktop.

Revisions

  1. Chi-Chun, Chen created this gist Nov 26, 2014.
    31 changes: 31 additions & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    # 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