Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

github resolve issue large file

You can use

git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD

This will delete everything in the history of that file. The problem is that the file is present in the history.
This command changes the hashes of your commits which can be a real problem, especially on shared repositories. It should not be performed without understanding the consequences.
Comment

PREVIOUS NEXT
Code Example
Shell :: Ndless SDK 
Shell :: linux save http content to file 
Shell :: bash return length of every nth row 
Shell :: jscore 
Shell :: sqlite3 attempt to write a readonly database 
Shell :: how to uninstall android studio in ubuntu 20.04 using terminal 
Shell :: current directory in batch file 
Shell :: open file explorer from cmd linux 
Shell :: how to run sudo without password 
Shell :: angular install ng-apexcharts 
Shell :: unzip a .gz file in linux 
Shell :: how to scp or ssh to gcp instance 
Shell :: target lcobucci jwt parser is not instantiable while building laravel passport 
Shell :: print parte da tela ubuntu 
Shell :: how to undo a modified file in git 
Shell :: add code to github repository from command line 
Shell :: tar extract to path 
Shell :: nvm how to install latest node 
Shell :: WSL 2 requires an update to its kernel component. 
Shell :: how to make a githook file executable 
Shell :: terminal change directory location to specific location 
Shell :: awk get index of matching substring 
Shell :: connect as root docker 
Shell :: visualize git tree branches in repo 
Shell :: extract gz file ubuntu 
Shell :: linux replace spaces with underscore from all files in directory 
Shell :: open local files wsl 
Shell :: vboxmanage export vm to ova 
Shell :: update linux bash history editor 
Shell :: save output of command to craible bash 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =