It's happened to all of us: you unzip a ZIP file into the current directory thinking you'd end up with a single directory of the contents, but surprise! Instead you just littered your current directory with a bajillion assorted new files and directories. And that's no good.
The solution: run rezip
on the original ZIP file. It will look at the contents
of the file and delete all of the matching contents in the current directory,
effectively undoing the unzip.
$ gem install rezip
$ unzip some-dumb-archive.zip # uh oh, we made a mistake
$ rezip some-dumb-archive.zip # all better!
Probably.
- Fork it ( https://github.com/brianokeefe/rezip/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request