Multiverse uses peer-to-peer network protocols to exchange data.
Instead of using a centralized server, every participant runs a peer node.
Start your peer node and keep it running in a separate terminal.
$ multi daemonWith the peer node up and running you are ready to create your first repository.
Create an empty directory and initialize the repository.
$ mkdir my_project
$ cd my_project
$ multi initAfter you have made some changes check the repository status.
Notice that all files are tracked by default.
$ multi statusOnce you are happy with your work, commit the changes to the repository.
A commit contains a snapshot of the files in your repository.
# describe your changes with an optional message
$ multi commit --message "add initial code"To share your code with others create a new repository on the peer node.
Ensure there is no confidential info. Everything shared on the main network is public.
$ multi repo create my_projectIf the repository was created successfully its remote path will be printed.
# your remote path will be different than this one
12D3KooWFRfidCtkUkViUMTnoEoVtzDLmdCix8XUmVCoZcATLixG/my_projectA remote path is how your repository is uniquely identified on the Multiverse network.
The remote path consists of your unique peer identifier followed by the repository name.
To push changes to the new remote repository, first add the remote to the repository.
# replace the remote path with your unique remote path
multi remote create origin 12D3KooWFRfidCtkUkViUMTnoEoVtzDLmdCix8XUmVCoZcATLixG/my_projectNext set the branch remote to the one created above.
multi branch set remote originFinally push the changes.
multi push