Skip to content

Instantly share code, notes, and snippets.

Revisions

  1. @ainsofs ainsofs created this gist Apr 16, 2015.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # remove specific file from git cache
    git rm --cached filename

    # remove all files from git cache
    git rm -r --cached .
    git add .
    git commit -m ".gitignore is now working"