File tree 2 files changed +14
-0
lines changed
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ to manage.
11
11
12
12
* [ Bash] ( #bash )
13
13
* [ Docker] ( #docker )
14
+ * [ Git] ( #git )
14
15
* [ Mac] ( #mac )
15
16
* [ Other] ( #other )
16
17
* [ Screen] ( #screen )
@@ -29,6 +30,10 @@ to manage.
29
30
30
31
- [ Assign External Static IPs] ( docker/assign-external-static-ips.md )
31
32
33
+ ### Git
34
+
35
+ - [ Remove Files from Commit History] ( git/remove-files-from-commit-history.md )
36
+
32
37
### Mac
33
38
34
39
- [ Remap Home and End Keys] ( mac/remap-home-and-end-keys.md )
Original file line number Diff line number Diff line change
1
+ # Remove Files from Commit History
2
+
3
+ ```
4
+ git filter-branch --tree-filter 'rm -f path/to/file.remove' HEAD
5
+ ```
6
+
7
+ ### Source
8
+
9
+ * [ Stack Overflow] ( https://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from-commit-history-in-git-repository/30274113#30274113 )
You can’t perform that action at this time.
0 commit comments