Skip to content

Instantly share code, notes, and snippets.

@dvcama
Last active August 29, 2015 14:18
Show Gist options
  • Save dvcama/cf4f8af3a05832d25450 to your computer and use it in GitHub Desktop.
Save dvcama/cf4f8af3a05832d25450 to your computer and use it in GitHub Desktop.
cvs: command line first commit
#!/bin/bash
find . -type d \! -name CVS -exec cvs add '{}' \;
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs add '{}' \; \)
find . \( -type d -name CVS -prune \) -o \( -type f -exec cvs commit -m "first version" '{}' \; \)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment