Skip to main content

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 文件。

Metadata

Release files for mogit 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mogit 0.0.4
File Size Uploaded
mogit-0.0.4.tar.gz 11.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mogit 0.0.4
File Interpreter ABI Platform
mogit-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / mogit-0.0.4.tar.gz

Download URL mogit-0.0.4.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c6b8bee67dc77917d87a4560ba1489b819cf36a039436856ff0595cd0cb795f7
BLAKE2b-256 checksum
How to use checksums
fd4c85fa78059306fb436baec07469b3433538ed4cd73c82a16d076076e85a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release files / mogit-0.0.4-py3-none-any.whl

Download URL mogit-0.0.4-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc963c6a057ed8d22102e8390bb184e265887f8ea28fc6d0277f21cbab299a89
BLAKE2b-256 checksum
How to use checksums
fdd15921dd3b2039d095892c95514dfe5ea35e8fc3efae55e72aa91bf253f888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page