Git Product home page Git Product logo

nanogit's Introduction

Eh, why not? Took direction from this statement. (and this one)

Why?

I got bored, and the above reference caught my eye. I thought it was interesting homework, so i tried it. Originally intended to write it procedurally in C, but ended up writing it in C++ after being quickly reminded of my place by C-strings. Also the filesystem module abstraction in cpp appeals to me over making linux-specific syscalls.
Currently, it can track files/directories and make commits. I will implement as much as is specified in the above references, and will move forward if intellectually curious. The current commit strategy is hilariously suboptimal, and i will change that when i get to actually studying version control systems.
Branching capabilities are available, but merging is not yet supported. Took about a day and a half to roll out this version.

Usage

Currently works reliably on Linux systems. Use make compile to build the binary and then use ./vcs init to intialize a repo.

Track a file

Use ./vcs add <filename> to track a file.

Remove a file from tracking

Use ./vcs rm <filename> to remove a file from tracking (not from filesystem).

Make a commit

Use ./vcs commit -m <message> to make a commit ONLY when you are at the head of a branch.

Create a new branch

Use ./vcs checkout -b <branch-name> to create a new branch, provided it does not exist.

Branch out

Use ./vcs checkout <commit-id> or ./vcs checkout <branch-name> to checkout a specific commit or branch.
Use ./vcs branch to see a list of all branches.

nanogit's People

Contributors

abi-sheks 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.