Autovrsion
A command line tool for simple automatic versioning of files using Rugged and Listen.
Pre-requisities
Install Git
command: $ sudo apt-get install git
Install Ruby
links for downloading and installing ruby :
https://www.ruby-lang.org/en/downloads/
https://www.ruby-lang.org/en/installation/
Installation
Add this line to your application's Gemfile:
gem 'autovrsion'
And then execute:
$ bundle
Or install it yourself as:
$ gem install autovrsion
Usage
$ autovrsion <command>
for working on current directory
$ autovrsion <command> </path/to/your/directory>
for working on a specific directory
Commands:
-
create
- used to create a new git repository or re-initialize an existing one. -
start
- start listening to file system changes and auto commit any change.commits would be created after every file addition, modification and/or deletion. -
display
- display the versions in the repository. -
check
- access a particular version. -
reset
- used after the check command, it resets to the latest version in the repository. -
rewind
- permanently rewind to a previous version(WARNING! any changes after the rewound version are permanently lost)
Command Usage
$ autovrsion create
or
$ autovrsion create /path/to/repository
$ autovrsion start
or
$ autovrsion start /path/to/repository
$ autovrsion display
or
$ autovrsion display /path/to/repository
$ autovrsion check
or
$ autovrsion check /path/to/repository
$ autovrsion reset
or
$ autovrsion reset /path/to/repository
$ autovrsion rewind
or
$ autovrsion rewind /path/to/repository