I use Bitbucket and discovered this morning that my repository stands at 1.5GB in size (yes, I know - I am new to VCSs and decided to push everything in the folder to the repository, including the R environment files which themselves can become enormous. Now I'm trying to fix that due to scenarios like this arising).
I have identified the files that I need to remove in order to reduce this (.RData
files), but I want to know if there is a quick way to delete all files ending in .RData
.
TL;DR: I have unwittingly committed loads of files (that I really didn't need to) across several branches and now I want to remove the ones that I have identified as unnecessary.
Note that I normally use Sourcetree but something went wrong so I need to clone these files again, and as such I want to greatly reduce the size before doing this via my browser; otherwise, the cloning process would probably take several hours.