From a6494701b1f267484a8f69c701d76b27737229c1 Mon Sep 17 00:00:00 2001 From: Stevie Card Date: Tue, 22 May 2018 13:45:29 -0400 Subject: [PATCH] fixed permissions and new notes --- .ssh/config | 0 note/git_purge_file.txt | 5 +++++ notes => note/notes | 0 3 files changed, 5 insertions(+) mode change 100755 => 100644 .ssh/config create mode 100644 note/git_purge_file.txt rename notes => note/notes (100%) 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