跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[Python] 分享一个我花了两个小时写的 Git copilot(gcop),作为一个十分实用的工具,编写 git commit message 从未如此简单,欢迎大家体验使用

发表于

分享一个我花了两个小时写的 Git copilot(gcop),作为一个十分实用的工具,编写 git commit message 从未如此简单,欢迎大家体验使用。

ref: https://x.com/kfhedRk3lXofRIB/status/1804907652876820798 Github: https://github.com/Undertone0809/gcop

gcop 的开发灵感来自于一次偶然的推文分享 https://x.com/mtrainier2020/status/1802941902964277379 ,我突然想到可以借助 git alias 添加一些小命令,于是我花了两个小时的时间进行工程封装,并发布了 pypi 包 ,so not only a demo 。

我的目的很简单,就是简化自己的 git commit 流程。所有额外的操作或输入自然语言的步骤都会降低开发体验。因此,在这个核心场景下,我希望有一个工具可以无缝地集成到我的 git 工作流中,自动生成提交消息。

gcop 就是这样一个工具,它通过大语言模型的能力帮助我撰写 git commit 消息。只需要一个简单的命令 git gcommit ,就能生成符合规范的提交消息,如 feat: ...。

在这个核心场景下,gcop 使用 git gcommit 命令直接无缝接入我的 git 工作流中,让我可以非常方便地自动 commit 。gcop 简单,且足够高效。

gcop 集成了 promptulate 的能力,可以轻松集成市面上的所有模型,通过配置文件来驱动你的大模型,下面是 promptulate 的介绍。 https://x.com/tuturetom/status/1793656355385139556

gcop 使用 p3g 脚手架生成,p3g 作为一个成熟的 Python 项目生成器,可以十分方便地帮助你创建标准化的 Python 工程化项目,下面是 p3g 的介绍。 https://x.com/kfhedRk3lXofRIB/status/1793701709946265853

这个视频介绍了如何使用 gcop 。 https://www.youtube.com/watch?v=j7qKI_TdhXs

欢迎大家体验使用,提供反馈~

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.