1.subash@subash-Acer-One-14-Z8-415:~/Desktop/project/subashpadaikathu$ du -sh .
309M
It is used to find size of current cd
2.subash@subash-Acer-One-14-Z8-415:~/Desktop/project/subashpadaikathu$ du -sh .git
307M .git
It is used to find size of separate file
3.subash@subash-Acer-One-14-Z8-415:~/Desktop/project/subashpadaikathu$ rm -rf .git
This is to delete file .
4.subash@subash-Acer-One-14-Z8-415:~/Desktop/project/subashpadaikathu$ find . -type f -size +50M
./.git/objects/8b/cf66c67b966c02f2089224c867de310617ceb3
This c
So this command:
find ~/ -type f -size +90M
means:
“Search all files inside my home folder bigger than 90MB”
Step 2 — Check file details
Run:
ls -lh filename
Example:
ls -lh movie.mp4
1.VERY IMPORTANT
If the 100MB file is inside:
node_modules
Then you should NOT upload it to GitHub.
Add this to .gitignore:
node_modules/
Then remove it from Git tracking:
git rm -r --cached node_modules
Then:
git commit -m "Removed node_modules"
git push
***Step 1 — Rename local branch
Change master → main
Run:
git branch -M main
Now your local branch becomes:
***If error comes like:
rejected
or
remote contains work that you do not have
Then run:
git pull origin main --allow-unrelated-histories
Then again:
git push -u origin main
Top comments (0)