https://github.com/masterminds/rmvcsdir
remove version control directories
https://github.com/masterminds/rmvcsdir
Last synced: about 2 months ago
JSON representation
remove version control directories
- Host: GitHub
- URL: https://github.com/masterminds/rmvcsdir
- Owner: Masterminds
- License: other
- Created: 2016-03-02T12:57:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T15:03:19.000Z (over 9 years ago)
- Last Synced: 2025-03-24T12:48:01.913Z (2 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 7
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# rmvcsdir - remove version control directories
This utility takes in one or more paths and recursively walks their complete
directory trees deleting Git, Bzr, SVN, and Mercurial directories along the way.[](https://travis-ci.org/Masterminds/rmvcsdir) [](https://ci.appveyor.com/project/mattfarina/rmvcsdir) [](https://goreportcard.com/report/github.com/Masterminds/rmvcsdir)
_Warning: This is a destructive operation where you likely cannot recover the
files afterwards. Do this at your own risk._## Options/Flags
* `-dryrun`: Display locations to delete without deleting them.
* `-quiet`: Do not display output unless an error occurs.
* `-skip-check`: Skip checking if locations exist.## Examples:
Deleting files from a single directory:
```sh
$ rmvcsdir ./vendor
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/Masterminds/semver/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/Masterminds/vcs/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/codegangsta/cli/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/gopkg.in/yaml.v2/.git
```Deleting files from multiple directories:
```sh
$ rmvcsdir ~/Code/myproj ~/Code/myproj2/vendor
...
```Perform a dry run where files are not deleted but you can see what would be deleted:
```sh
$ rmvcsdir -dryrun ./vendor
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/Masterminds/semver/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/Masterminds/vcs/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/github.com/codegangsta/cli/.git
Deleting: /Users/mfarina/Code/go/src/github.com/Masterminds/glide/vendor/gopkg.in/yaml.v2/.git
```