Skip to content

Instantly share code, notes, and snippets.

@haxpor
Last active March 15, 2017 12:14
Show Gist options
  • Save haxpor/0edbb4badf6e2ece899e8e0c764153d8 to your computer and use it in GitHub Desktop.
Save haxpor/0edbb4badf6e2ece899e8e0c764153d8 to your computer and use it in GitHub Desktop.
Remove ignored files that were already committed. Thanks to https://www.git-tower.com/learn/git/faq/ignore-tracked-files-in-git.
$ git rm -r --cached .
$ git add .
$ git commit -m "Clean up ignored files"
@haxpor
Copy link
Author

haxpor commented Mar 15, 2017

I made the open source git-clegn to help do above (without getting the way in committing your source code) at https://github.com/haxpor/git-clegn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment