Skip to content

tomassantunes/rvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rvc

Simple Version Control System made in Rust

What is it?

rvc is a simple Version Control System, inspired in git, that allows you to keep track of your changes locally (currently). You can configure where your commits are stored so you always know where to look for.

Requirements

How to use it?

Init

To use rvc you first need to create your own project, then navigate to your project folder in your terminal of choice and initialize the rvc repository:

cargo run init

This will create the folder .rvc, which contains all the files and folders needed for rvc to manage the versions of your project.

Config

You can configure your rvc with the following command:

cargo run config <option> <value>

Currently there is only one option available, which is the folder where your changes are stored:

  • remote

Add

After you've made some changes to your project you add the files you want to commit:

cargo run add file1.rs 
cargo run add folder/

Commit

When you are ready to make a commit, you can use the following command:

cargo run commit "commit message"

Push

Finally, you can push your changes to your designated folder with this command:

cargo run push

Cat File

If you want to see the contents of a gzip compressed file, for example, the files stored in your designated remote folder, you can use this command:

cargo run cat-file file

Next steps

  • Add the ability to checkout, making it posible to revert/go back to a different point in the project.
  • Adding the ability to push to a remote using SSH.
  • Add branches.

About

Rust Version Control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages