cevheri commited on
Commit
377e085
·
1 Parent(s): df26d6d

fix: git history

Browse files
Files changed (1) hide show
  1. .github/workflows/sync_with_hf.yml +8 -0
.github/workflows/sync_with_hf.yml CHANGED
@@ -13,6 +13,14 @@ jobs:
13
  fetch-depth: 0
14
  lfs: true
15
 
 
 
 
 
 
 
 
 
16
  - name: Push to HF Space
17
  env:
18
  HF_TOKEN: ${{ secrets.HF_TOKEN }}
 
13
  fetch-depth: 0
14
  lfs: true
15
 
16
+ - name: Clean binary files from history
17
+ run: |
18
+ git filter-branch --force --index-filter \
19
+ "git rm --cached --ignore-unmatch exports/charts/blank_chart.png resources/visualization_demo.png" \
20
+ --prune-empty --tag-name-filter cat -- --all
21
+ git reflog expire --expire=now --all
22
+ git gc --prune=now --aggressive
23
+
24
  - name: Push to HF Space
25
  env:
26
  HF_TOKEN: ${{ secrets.HF_TOKEN }}