Giter VIP home page Giter VIP logo

bit's Introduction

Bit Version Control System

Bit is a simple version control system implemented in C++ as a personal project to understand the principles of version control systems like Git.

Features

  • Commit: Create commits with a commit message.
  • Staging: Stage changes before committing.
  • Checkout: Switch between different commits.
  • Branch: Branches will be added later.

Getting Started

To get started with Bit, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/simple40/bit.git
    cd bit
    
  2. Build the project

    • Open Visual Studio:

      • Choose "Open a project or solution."
      • Navigate to the Bit project directory and open the solution file (Bit.sln).
    • Configure Build:

      • Select the build configuration (e.g., Debug or Release) from the toolbar.
      • Right-click on the project in the Solution Explorer and select "Properties."
      • Verify and configure project settings if needed.
      • Build the Project:
    • Build the project:

      • by selecting "Build" > "Build Solution" from the menu.
      • Alternatively, you can use the shortcut Ctrl + Shift + B.

    This will compile the source code and generate the bit.exe executable.

    • Verify Build:
      • Open the Developer Command Prompt for Visual Studio.
      • Navigate to the Bit project directory.
      • Run the following command to verify the build:
        .x64\Debug\bit --version
        or
        .x64\Release\bit --version

    This should display the version information, confirming that the build was successful.

Basic Commands

  1. Add Changes to Staging Area
bit add <file1> <file2> ...   # Add specific files
bit add .                     # Add all changes
  1. Commit Changes
bit commit "Your commit message here"
  1. Check Repository Status
bit status
  1. View Commit History
bit log
  1. Checkout to Previous Commit
bit checkout <commit_sha_hash>
  1. List Files in Index
bit ls

Example Usage Here's an example workflow:

# Add changes
bit add file1.txt file2.txt

# Commit changes
bit commit "Added new features"

# Check repository status
bit status

# View commit history
bit log

Now you're ready to start using Bit for your version control needs!

Licensing

bit's People

Contributors

simple40 avatar

Stargazers

Arjun Sharma avatar Mehul Raj avatar  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.