Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

git find largest files in repo

git rev-list --objects --all |
  git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
  sed -n 's/^blob //p' |
  sort --numeric-sort --key=2 |
  cut -c 1-12,41- |
  $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
Comment

PREVIOUS NEXT
Code Example
Shell :: Push an existing folder 
Shell :: uninstall packages atom 
Shell :: command to install the fire-base tools 
Shell :: bash numbering even filename 
Shell :: ubuntu 16 lock from terminal 
Shell :: bat if command exists 
Shell :: echo wc command 
Shell :: env: ‘/etc/init.d/tomcat’: No such file or directory 
Shell :: create ext4 file system linux 
Shell :: disbale knopwob dunst 
Shell :: como usar o cmd do git 
Shell :: linux subsystem mount file into windows 
Shell :: how to install 
Shell :: how to write red text in readme in github 
Shell :: bash get first number from string 
Shell :: View a Particular Commit 
Shell :: tail file first 100 lines linux 
Shell :: delete git local branch 
Shell :: how to setup promethus on docker 
Shell :: install lazydocker 
Shell :: unable to resolve dns when kubernetes is running on ubuntu 
Shell :: (linux/arm) does not match the detected host platform (linux/amd64) 
Shell :: adb default location 
Shell :: create cat document ubuntu 
Shell :: yum repository 
Shell :: how to create a script raspberry pi 
Shell :: cmd move overwrite file 
Shell :: git initial commit 
Shell :: batch set from file 
Shell :: vs code linux cache 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =