git-r is a Rust-based application that replicates essential functionalities of the Git command-line tool. This project is a work in progress aimed at understanding and re-implementing the underlying architecture of Git.
- Initialize a new repository (
init) -
cat-filefor the stashed, commited, files -
ls-treefor viewing the tree of commit - Clone an existing repository (
clone) - Stage and commit changes (
add,commit) - Push changes to a remote repository (
push) - Pull updates from a remote repository (
pull) - View commit history (
log) - Create and manage branches (
branch,checkout) - Merge branches (
merge)
To build and install git-r, ensure you have Rust installed. Then, run the following commands:
git clone https://github.com/prashant1k99/git-r.git
cd git-r
cargo build --release