bitshit
v1.2.1
Published
Your Personal Modifiable Git
Readme
Bit Repository Manager
Bit Repository Manager is a simple and efficient command-line tool designed to help you manage your Bit repositories with ease. It allows you to initialize a new Bit repository, add files, read files, and hash files seamlessly.
Features
✅ Initialize a new Bit repository
✅ Add files to the Bit repository
✅ Read file contents from the repository
✅ Generate a hash for files
✅ Simple and lightweight command-line tool
✅ Easy setup and installation
Installation (User)
npm i -g bitshitInstallation (Development)
To install Bit Repository Manager, follow these steps:
# Clone the repository
git clone https://github.com/TheAvtarSingh/bit
# Navigate to the project directory
cd bit
# Install dependencies
npm installUsage
Once installed, you can use the following commands to manage your Bit repository:
Initialize a new Bit repository
bit initThis command initializes a new Bit repository in your current directory.
- Support till v1.0.0
Add files to the Bit repository
bit add <filename>Replace <filename> with the name of the file you want to add to the repository.
Read file contents from the repository
bit read-file <hash>This command retrieves the contents of a file stored in the repository using its hash.
Generate a hash for a file
bit hash-my-file <filename>This command generates a unique hash for a file and stores it in the Bit repository.
Example Workflow
Initialize a new Bit repository:
bit initOutput: "Bit repository initialized successfully!"
Add a file to the repository:
bit add example.txtOutput: "File 'example.txt' added to the repository."
Read file contents using its hash:
bit read-file a1b2c3d4e5f6g7h8i9j0kOutput: "File content: Hello, world!"
Generate a hash for a file:
bit hash-my-file example.txtOutput: "Generated hash for example.txt: a1b2c3d4e5f6g7h8i9j0k"
Screenshots
Initializing a Bit Repository
Adding and Reading Files from the Repository
Contributing
We welcome contributions! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-<yourname>-<feature>). - Commit your changes (
git commit -m '<yourname>-<Feature Description>'). - Push to the branch (
git push origin feature-<yourname>-<feature>). - Open a Pull Request.
License
This project is licensed under the MIT License.
Support
For any issues or feature requests, feel free to open an issue or contact us at [email protected].
