Large repositories can slow down cloning and push operations. Here are some approaches to reduce the size:

Add a .gitignore

Prevent build artifacts, dependencies, and temporary files from being committed:

node_modules/
build/
*.log

Clean up Git history

If large files were accidentally committed in the past, you can remove them from the history using git filter-repo :

git filter-repo --strip-blobs-bigger-than 50M

Warning: Rewriting history is a destructive operation. Coordinate with your team and create a backup before proceeding.