Coder Social home page Coder Social logo

my-git-version-control-system's Introduction

my-git-version-control-system

it is a project that goes under the hood of the version control system this is a prototype of git system that works with the .txt file this code initialises the repo repository which is same as the git repository that we work with and have objects file that have hash of the filecontents and the head which is our parent file and the index folder that keeps on the updaing the system staging

use: first try to craete text files under the ..bin/src folder with any number of directories you should have node.js installed

init.mjs : running this file will initialise your repository and create a .repo folder status.mjs : it will check the files by checking their staging and if the files are changed or not staged it will printout the files that needs to staged add.js -- : now this is the equvalent of git add which put your files into the staging are i.e make the hash of the files commit.mjs : this is the main command that commit your staged files and create the tree and object files needed for the repository

you can play around with the files as much as you want as it will create the object fles with the following above commands

this version control system doesnt invode the git diff and gt branch git merge and most importantly the git checkout functonality

but this code provides the basic of how the version control system keep track of ypur files for the extended learning about the git and version control system kindly follow the git repository as it is open source https://github.com/git/git or you can folow this blog for the inspiration https://tom.preston-werner.com/2009/05/19/the-git-parable.html

my-git-version-control-system's People

Contributors

garvgupta20 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.