Differences
This shows you the differences between two versions of the page.
docs:git:completely_remove_a_file_from_all_revisions [2010/02/24 10:41] – created billh | docs:git:completely_remove_a_file_from_all_revisions [2010/02/24 10:47] (current) – billh | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== completely remove a file from all revisions ====== | ====== completely remove a file from all revisions ====== | ||
- | You find a file that should never have been committed into the repo. Adding the file to a .gitignore list doesn' | + | If you've added a file to a .gitignore list and it still shows up for commits, you can ignore it from that point on by removing it with this: |
+ | < | ||
+ | git rm --cached < | ||
+ | </ | ||
+ | |||
+ | If you find a file that should never have been committed into the repo, you need to do more than this. Adding the file to a .gitignore list doesn' | ||
**method 1** | **method 1** |