Skip to content

Latest commit

 

History

History
60 lines (55 loc) · 1.52 KB

File metadata and controls

60 lines (55 loc) · 1.52 KB

Sweet-vcs: a verison control system(vcs)

Description

Sweet-vcs is a version control system developed using JavaScript. It aims to provide a simple and intuitive interface for managing project versions and collaborating with team members. The project is designed to be lightweight and easy to integrate into existing workflows.

Features

  • Version Tracking: Keep track of changes made to files over time.
  • Adding files: Add files for sweet to track.
  • Commit files: Commiting files with commit message.
  • Show changes: Show what has changed in the files.
  • Log data: Log all commit data with necessary details.

Installation

To install Sweet-vcs, follow these steps:

  1. Clone the repository:
    git clone https://github.com/therealharshit/Sweet-vcs.git
    
  2. Navigate to the project directory:
    cd Sweet-vcs
    
  3. Install the necessary dependencies:
    npm install
    
  4. Compile the code
    npx tsc
    
  5. Run the project
    npm run start
    

Usage

To use Sweet-vcs, follow these steps:

  1. Initialize a new repository:
    node ./Sweet.js init
    
  2. Add files to the repository:
    node ./Sweet.js add <file_name>
    
  3. Commit changes:
     node ./Sweet.js commit "Commit message"
    
  4. Show changes:
    node ./Sweet.js show <commitHash>
    
  5. Log data:
    node ./Sweet.js log
    

License

This project is licensed under the MIT License. See the LICENSE file for more details.