We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5e6c2 commit 96c769cCopy full SHA for 96c769c
Anirudh/missing_semeter_git/question1/Anirudh/missing_semeter_git/question2/solution.txt
@@ -0,0 +1,16 @@
1
+task is to remove a sensitive file from git history
2
+
3
+1. Created a test repo with git init
4
+2. Added a file secret.txt with sensitive data
5
+3. Committed it by mistake
6
+4. Used git filter-repo to completely remove it from history:
7
+ Command:
8
+ git filter-repo --path secret.txt --invert-paths
9
+5 again had to use it by force
10
11
+ git filter-repo --path secret.txt --invert-paths --force
12
13
14
+6. Verified using:
15
+ git log --all -- secret.txt
16
0 commit comments