Skip to main content

A CLI tool to manage wip branch with automated commit and merge

Project description

WIP Branch Watcher

项目简介

WIP Branch Watcher 是一个Python工具,它监控当前Git仓库的文件变动,并自动将更改提交到名为wip的分支中。此工具旨在帮助开发者在开发过程中快速存储工作进展,避免丢失未提交的更改。

功能特点

  • 自动监控文件变动:使用watchdog库实时监控文件系统的变更。
  • 自动提交和推送更改:检测到更改后,自动提交并推送到wip分支。
  • 分支切换:能够在wipmain分支之间灵活切换,并保持变更。
  • 支持.gitignore配置:自动加载.gitignore文件,忽略不需要监控的文件和目录。

安装

你可以通过PyPI轻松安装此工具:

pip install wip

使用方法

在需要监控的Git仓库的根目录下,直接运行以下命令启动监控:

wip
  • 启动后,程序将切换到wip分支,并开始监控文件变动。
  • 每当检测到变动,工具会自动执行git addgit commitgit push
  • 若需停止监控,可以按Ctrl+C

注意事项

  • 确保当前目录为Git仓库的根目录。
  • 确保当前分支为main或您指定的主分支,程序会自动处理到wip分支的切换。
  • 在程序运行过程中,请勿手动切换分支以避免冲突。

贡献

欢迎对本项目进行贡献!请通过提交问题或拉取请求来与我们联系。

许可证

此项目采用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

wip_manager-0.1.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wip_manager-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file wip_manager-0.1.0.tar.gz.

File metadata

  • Download URL: wip_manager-0.1.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for wip_manager-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55c0a410e656903e0f59cf4b604b13f74364be80514099f80ccc56c547d18296
MD5 8dbbe30d598e46958a4bacc4f2b486d8
BLAKE2b-256 538bac0c30142b0ba9c33d61b455fef491ade835989dcbdfdd28d5954b7aba4c

See more details on using hashes here.

File details

Details for the file wip_manager-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wip_manager-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for wip_manager-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79a39e271342b53a3ba77573a32f8e1a60990e8dc52d5311266e411c413b7822
MD5 3e513ec51c1b9dad65a7044529cd4417
BLAKE2b-256 79515ec2e2465817cf4216e9ff4a5632e846251df3eef55dafd59f53e8204353

See more details on using hashes here.

Supported by

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