Kushwanth Chowday Kandala commited on
Commit
0850615
·
1 Parent(s): 1c84dfb

Update sync_to_huggingspace_hub.yml

Browse files
.github/workflows/sync_to_huggingspace_hub.yml CHANGED
@@ -14,6 +14,16 @@ jobs:
14
  with:
15
  fetch-depth: 0
16
  lfs: true
 
 
 
 
 
 
 
 
 
 
17
  - name: LFS Install
18
  run: git lfs install
19
  - name: LFS Track
 
14
  with:
15
  fetch-depth: 0
16
  lfs: true
17
+ - name: Removing sensitive files and their commits from Git history
18
+ run: git filter-branch --force --index-filter "git rm --cached --ignore-unmatch output_sample.mp4" --prune-empty --tag-name-filter cat -- --all
19
+ - name: remove these old commits
20
+ run: git for-each-ref --format="%(refname)" refs/original/ | xargs -I {} git update-ref -d {}
21
+ - name: garbage collector
22
+ run: git gc --prune=now && git gc --aggressive --prune=now
23
+ - name: push the changes
24
+ run: git push origin --force --all
25
+ - name: push all tags
26
+ run: git push origin --force --tags
27
  - name: LFS Install
28
  run: git lfs install
29
  - name: LFS Track