Giter Site home page Giter Site logo

gitlet's Introduction

Gitlet

A Github-like Version Control System for storing file backups.

Getting started

Compile all the java classes: javac gitlet/Main.java gitlet/Staging.java gitlet/Repo.java gitlet/Branch.java gitlet/Commit.java gitlet/Head.java gitlet/Status.java

How to use Gitlet

To start a repo: java gitlet.Main init

To add a file: java gitlet.Main add [file name]

To make a commit: java gitlet.Main commit [message]

To remove a file: java gitlet.Main rm [file name]

To see the commit history: java gitlet.Main log

To see the global commit history: java gitlet.Main global-log

To find commits that contain a given message: java gitlet.Main find [commit message]

To see the status (current branch, staged files, removed files, modified not staged for files, and untracked files): java gitlet.Main status

To checkout a file: java gitlet.Main checkout -- [file name]

To checkout to a commit: java gitlet.Main checkout [commit id] -- [file name]

To checkout to a branch: java gitlet.Main checkout [commit id] -- [file name]

To create a branch: java gitlet.Main branch [branch name]

To remove a branch: java gitlet.Main rm-branch [branch name]

To reset to a commit: java gitlet.Main reset [commit id]

To merge files from the given branch into the current branch: java gitlet.Main merge [branch name]

Acknowledgement

This implementation follows the design of Gitlet[https://cs61bl.org/su20/projects/gitlet/#acknowledgments] owned by the staff of the EECS department at University of California, Berkeley.

To future CS61B/BL students, don't copy this implementation. You can come up with your own design.

gitlet's People

Contributors

alexfeng2000 avatar chloewlin avatar omatthew98 avatar sthuan avatar zephyrbarkan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

chenzuojing

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.