Skip to content

ClaraJacintho/sgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👋 Welcome to sgit

This project is a clone of git in Scala, made for the Functional Programming class at Polytech Montpellier.

The project started on October the 2nd and will end on October the 20th.

⚡ Installation

Clone the repository

In the repository, run sbt assembly

The compiled JAR will be on the target/<scala version> directory (Experimental: alternatively, download the pre-compiled jar from the GitHub under “releases” ).

You can run it using java -jar <path/to/jar> <command> <arg> straight in the directory you want to build the sgit repo. You can also create an alias in your .bashrc file as: alias sgit='java -jar '<path/to/jar>'. You will then be able to run by typing sgit <command> <arg>.

📌 Commands

  • sgit init
  • sgit status
  • sgit diff
  • sgit add <filename>
  • sgit commit
  • sgit log
  • sgit log -p
  • sgit log -stat
  • sgit branch <branch>
  • sgit branch -av
  • sgit checkout <branch>
  • sgit tag <tag>
  • sgit merge <branch>
  • sgit rebase <branch>
  • sgit rebase -i

About

A Git clone in Scala

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages