Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git filter-branch remove file

# Say you have a file (e.g. sensitive, really large,...) that you want removed from
# your repository (local and remote, current and history)
git filter-branch --tree-filter 'rm filename' HEAD


# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository
# https://docs.github.com/en/repositories/working-with-files/managing-large-files/about-large-files-on-github
Source by git-scm.com #
 
PREVIOUS NEXT
Tagged: #git #remove #file
ADD COMMENT
Topic
Name
8+8 =