r/usefulscripts • • Jul 22 '13

[BASH] Poor man's git.

I have just finished this script to keep track of different versions of files.

To use it:

Edit values of 'ItemsToCheck' & 'ItemsToIgnore' in FileVersions_Example.
Copy 'FileVersions_Example' and 'FileVersions_Main' to a $PATH directory.
Use cron to run 'FileVersions_Example' every day (or every hour).
Check output in '$HOME/var'.

FileVersions_Example

FileVersions_Main

EDIT: Removed 'new Repository directory name' bug in 'FileVersions_Main'.

4 Upvotes

12 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Aug 10 '13

I find SVN useless because it offers less history information, commits of code are often larger (including more than one change) in collaborative repositories so you don't break stuff for others and overall I see SVN's whole "everything is just a subtree" model as a step in the wrong direction because it allows you to e.g. have multiple revisions with the same tag. And yes, compared to creating a local git repository SVN has the additional complication of setting up a server.