Skip to content

Instantly share code, notes, and snippets.

@jamescmartinez
Created December 10, 2012 07:38

Revisions

  1. jamescmartinez created this gist Dec 10, 2012.
    6 changes: 6 additions & 0 deletions gitignore_update.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash

    # Please be aware to commit all your changes before; YOU WILL LOSE ALL CHANGES SINCE LAST COMMIT!
    git rm -r --cached . # This removes everything from the index.
    git add . # Add everything back using new .gitignore
    git commit -m ".gitignore is now working" # Commit it!