Skip to main content

一个轻量级的分布式版本控制系统

Project description

mogit

GitHub Build Status PyPI - Downloads GitHub repo size GitHub Repo stars

目录

简介

mogit 是一个轻量级的分布式版本控制系统,用于跟踪文件的变化历史。它可以帮助你管理项目的源代码,并支持多个开发者的协作。

安装

下载可执行文件

打开 释放 页面,下载适合您的系统的压缩包

从PyPi安装

pip install mogit

基于源码安装

  1. 克隆仓库:

    git clone https://github.com/moyanj/mogit.git
    cd mogit
    
  2. 构建并安装:

    make
    

使用

初始化一个新的 mogit 仓库:

mogit init

添加文件到暂存区:

mogit add <file>

提交更改:

mogit commit 提交信息

查看提交历史:

mogit log

命令

以下是 mogit 支持的一些基本命令:

  • mogit init: 初始化一个新的仓库.
  • mogit add <file>: 将文件添加到暂存区.
  • mogit commit "message": 提交更改.
  • mogit log: 显示提交历史.
  • mogit branch <branch>: 切换分支.
  • mogit checkout <hash>: 切换提交.

完整命令帮助请使用 mogit --help查看

贡献

欢迎任何贡献!请遵循以下步骤来贡献代码或修复错误:

  1. Fork 本仓库.
  2. 创建一个新的分支 (git checkout -b feature-name).
  3. 提交更改 (git commit -m 'Add some feature').
  4. 推送到你的分支 (git push origin feature-name).
  5. 提交 Pull Request.

许可证

本项目采用 MIT 许可证发布。更多信息,请参阅 LICENSE 文件。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mogit-0.0.4.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

mogit-0.0.4-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file mogit-0.0.4.tar.gz.

File metadata

  • Download URL: mogit-0.0.4.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for mogit-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c6b8bee67dc77917d87a4560ba1489b819cf36a039436856ff0595cd0cb795f7
MD5 d9ac700616ea612a52b5ebfaf873fd9a
BLAKE2b-256 fd4c85fa78059306fb436baec07469b3433538ed4cd73c82a16d076076e85a25

See more details on using hashes here.

File details

Details for the file mogit-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: mogit-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for mogit-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 bc963c6a057ed8d22102e8390bb184e265887f8ea28fc6d0277f21cbab299a89
MD5 0947fb03d1983d6a4e35e8e0aa6b7a2e
BLAKE2b-256 fdd15921dd3b2039d095892c95514dfe5ea35e8fc3efae55e72aa91bf253f888

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page