Skip to content

Instantly share code, notes, and snippets.

@amaankulshreshtha
Last active September 12, 2023 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amaankulshreshtha/54097d9e99e9f41b51af81ee44e0d32a to your computer and use it in GitHub Desktop.
Save amaankulshreshtha/54097d9e99e9f41b51af81ee44e0d32a to your computer and use it in GitHub Desktop.
Zip ignore list from gitignore for React Native Project
zip -r <zip-file-name>.zip <folder-to-be-zipped> "**/dist/*" -x "**/tmp/*" -x "**/out-tsc/*" -x "**/.idea/*" -x "**/.project/*" -x "**/.classpath/*" -x "**/.c9/*" -x "**/.launch/*" -x "**/.settings/*" -x "**/.sublime-workspace/*" -x "**/.sass-cache/*" -x "**/connect.lock/*" -x "**/coverage/*" -x "**/libpeerconnection.log/*" -x "**/npm-debug.log/*" -x "**/yarn-error.log/*" -x "**/testem.log/*" -x "**/typings/*" -x "**/.DS_Store/*" -x "**/Thumbs.db/*" -x "**/build/*" -x "**/.pbxuser/*" -x "**/.mode1v3/*" -x "**/.mode2v3/*" -x "**/.perspectivev3/*" -x "**/xcuserdata/*" -x "**/.xccheckout/*" -x "**/.moved-aside/*" -x "**/DerivedData/*" -x "**/.hmap/*" -x "**/.ipa/*" -x "**/.xcuserstate/*" -x "**/ios/.xcode.env.local/*" -x "**/build/*" -x "**/.idea/*" -x "**/.gradle/*" -x "**/local.properties/*" -x "**/.iml/*" -x "**/.hprof/*" -x "**/*/.cxx/*" -x "**/.yarn/*" -x "**/node_modules/*" -x "**/npm-debug.log/*" -x "**/yarn-error.log/*" -x "**/buck-out/*" -x "**/.buckd/*" -x "**/.keystore/*" -x "**/fastlane/report.xml/*" -x "**/fastlane/Preview.html/*" -x "**/*/fastlane/screenshots/*" -x "**/*/fastlane/test_output/*" -x "**/.jsbundle/*" -x "**/*/ios/Pods/*" -x "**/*/vendor/bundle/*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment