Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save baleethai/2c50b0d5c776b2fa6e740c155a05e60b to your computer and use it in GitHub Desktop.

Select an option

Save baleethai/2c50b0d5c776b2fa6e740c155a05e60b to your computer and use it in GitHub Desktop.

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"