DVCS system written in Rust
CSC 253: Collaborative Programming and Software Design
Aceves, Zheng, Zimmerman
On Linux and macOS systems, this is done as follows:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the directions on screen to conclude installation.
$ cargo run
Initializes a repository in the user's current working directory.
$ cargo run init
It can be used with optional argument to initialize repository elsewhere.
$ cargo run init <repo-path>
Prints out the status of the current repository.
$ cargo run print
Clones repository from given path into the user's current working directory.
$ cargo run clone <repo-path>
It can be used with optional argument .
$ cargo run clone <repo-path> <destination-path>
Adds file to tracking list.
$ cargo run add <file-path>
Removes file from tracking list.
$ cargo run remove <file-path>
Checkout to specific revision.
$ cargo run checkout <revision-name>
Commits current changes.
$ cargo run commit
Merges two revisions.
$ cargo run merge <revision-name> <revision-name>
Pushes current commit(s).
$ cargo run push
Retrieves most recent changes from origin.
$ cargo run pull