Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 246 Bytes

File metadata and controls

13 lines (10 loc) · 246 Bytes

Remove a file form history

  1. Exclude the from in gitignore

  2. Remove the file from history:

git filter-branch --tree-filter 'rm -f /path/to/sensitive/file' HEAD
  1. Update the history to remote:
git push origin --force --all