The easiest way to try out Git X-Modules CLI is to use a built-in demo. It will automatically create several Git repositories and sync them with X-Modules. All you will have to do is push and pull!
Download Git X-Modules CLI from TMateSoft website.
Depending on your OS - unpack
If you do not have Java runtime installed on your computer - also download and install Java.
If necessary, add
gx/binto your PATH environmental variable.
$ gx demo [OPTIONS] DEMO_PATH
DEMO_PATHis the path to an empty directory, where you would like demo repositories to be created.
If you would like a more hands-on experience, use
$ gx demo --repos-only DEMO_PATH
It will create demo repositories, but not sync them with X-Modules, and print the instructions for you to create X-Modules yourself.
For the whole list of available options, see Git X-Modules Reference Guide
The following bare repositories will be created in the specified directory:
By default, three X-Modules will be created within
/parent /app /libraryA /libraryB
These directories within
parentare synced with the corresponding external repositories.
If you used
--repos-onlyoption, then these X-Modules are not created, and you should do it yourself, according to the instructions.
Now try this out!
parent.gitand push something to one of the X-Modules. Your changes should immediately appear in the corresponding external repository.
For example, if you add a file to
parent/app, and push your changes to
parent.git, your changes will be also pushed to
app.gitand push something there. Then run
$ gx sync DEMO_PATH/parent.git
DEMO_PATHis the path to the directory, where your demo repositories have been created.
Your changes will be pulled to the
/appdirectory in the