We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
via @kubu4
Easiest way I've found to ignore those large files is the following:
In the shell:
find ./* -size +100M | cat >> .gitignore
The command explained:
Find all files in my current directory, and all those directories contained within, that are >100MB. Concatenate this list to the .gitignore file.
The text was updated successfully, but these errors were encountered:
We need to remove the "./" then, .gitignore works, this command does that.
find . -size +1G | sed 's|^./||g' | cat >> .gitignore
Sorry, something went wrong.
The command above will add large file paths to .gitignore, even if they're already present in the file.
.gitignore
Below script will add files larger than 10M to .gitignore and then remove duplicate entries from it:
find . -size +10M | sed 's|^./||g' | cat >> .gitignore sort .gitignore | uniq > temp_file && mv temp_file .gitignore
No branches or pull requests
via @kubu4
Easiest way I've found to ignore those large files is the following:
In the shell:
find ./* -size +100M | cat >> .gitignore
The command explained:
Find all files in my current directory, and all those directories contained within, that are >100MB. Concatenate this list to the .gitignore file.
The text was updated successfully, but these errors were encountered: