Skip to content

JerryJia00/Gitlet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Gitlet

This project is about the implemenation of a simple version of Git. The core part is in Repository.java which contains all the functions. (This is a class project of the data structure class at UC Berkeley)

Run

In the same level of the gitlet folder, run the followings to compile:

make

or

javac gitlet/*.java

All the commands have the form of

java gitlet.Main [command]

To run the program, make sure to run java gitlet.Main init first.

Here's a list of all the commands:

init
add [file name] 
commit [message]
rm [file name]
log
status
branch [branch name]
checkout -- [filename]
checkout [commit id] -- [file name]
checkout [branch name]
reset [commit id]
merge [branch name]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors