diff --git a/.ssh/config b/.ssh/config old mode 100755 new mode 100644 diff --git a/note/git_purge_file.txt b/note/git_purge_file.txt new file mode 100644 index 0000000..e2a9882 --- /dev/null +++ b/note/git_purge_file.txt @@ -0,0 +1,5 @@ +sometimes you need to get rid of a file from all past commits in git. to do that do the following: +git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch *.PATTERN' + +then force an update to the remote by +git push --force -u origin master diff --git a/notes b/note/notes similarity index 100% rename from notes rename to note/notes