Giter Club home page Giter Club logo

gitlet's Introduction

Gitlet

Gitlet is a lightweight java implementation of git, made for learning purposes

Commands

add, rm, commit, branch, log, global-log, status, checkout, find, merge

Overview

just like the real git, I made the structure as below

Blobs: Real git stores the chunks of the file in the blobs. Although here we store the entire file with its sha1 hash as its name in blobs. Multiple commits can refer to the same blob.

Commits: Commit folder containes the serialised Commit objects. Each object contains the log message, other meta data, snapshot of the directory at time and reference to the last commit.

How it takes the snapshot of the directory ?

We ONLY COPY THE FILES THAT HAVE CHANGED into the blobs folder and rename them with their sha1 hash. we note down the file name and hash in the commit. So if we were to restore files from that commit, we can refer to the hash in front of that file name.

gitlet's People

Contributors

akashjkhamkar avatar

Stargazers

Roman avatar  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.