Prerequisites
Installation
Following steps would get you started:
- Download Live Version.
- Go to the LiveVersion folder and execute
source ./setup. - If you see “Success!”, all went well. It is ready.
$ cd lv-master
$ source ./setup
Success!Quick Usage
$ watch foldername or filenameExamples:
1. $ watch ~/projects/my_project # watch folder my_project
2. $ watch ~/.bash_profile # watch file .bash_profile
3. $ watch /etc/hosts # watch file /etc/hosts to track configurationIn Example 1. watch ~/projects/my_project, watch command will:
- Will ask for the default values (first time only).
- Create a Live Repository in ~/LiveRepos.
- On Mac, Create a new LaunchAgent to watch the folder.
- On Linux, Create a new Watcher job or incrond entry.
- Live Version activity would be logged in
~/logs/my_project.projects.logby default.
Note: incrond works only at single directory level, changes in subdirectories are not tracked by it.
Advance Usage
$ lv /full/source/path /full/destination/path [/log/file] [email]Where:
/full/source/pathis the absolute path of the file or folder that you want to be versioned live./full/destination/pathis absolute path of the Live Repository where a versioned copy of the source would reside./log/fileis an optional parameter that gives absolute path of the log file where log of activities would be kept.emailis an experimental feature; works only on shell environment.
This is one time execution, you may want to add this to your build script or custom launchd property list file, or incrontab entry.
Recovery
To harness the power of Live Version, you would need a graphical git client such as Source Tree.
Once you have the client, you can open your Live Repository in the client and see the changes in much clear context.
Check out documentation for more details.
Happy Versioning!