Skip to content

SavvyHex/babygit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

babygit

A toy version of git written in C.

Features

  • Repository initialization
  • File staging
  • Commits
  • Branching and Merging
  • Status
  • Stash
  • Checkout
  • Reset
  • Hashing (SHA-1)

Installation

Install using make (for testing and development purposes)

    git clone [email protected]:SavvyHex/babygit.git
    cd babygit
    make

This will create the bin/ folder inside which the babygit executable will exist.

Install using install.sh

    git clone [email protected]:SavvyHex/babygit.git
    cd babygit
    ./install.sh

Usage/Examples

init

After installation, you can initialize a babygit project using the following command.

    babygit init

Staging

    babygit add .

Committing Changes

    babygit commit "Initial Commit" "SavvyHex"

Creating a Branch

    babygit branch testing

Switching to Another Branch

    babygit checkout main

Checking the Status

    babygit status

Merging Branches

    babygit merge main

Stashing Changes

    babygit stash

License

MIT

About

A toy version control system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published