A powerful command-line tool that simplifies GitHub Flow workflows.
# update tag
nrcip
# release bin file
goreleaser release --clean
# upload dist to oss bucket
oss://web-alo7-com/assets/bins/gfl-releases/
# list oss
oss://web-alo7-com/assets/bins/gfl-releases/
# upload oss
cd dist && aliyun oss sync . oss://web-alo7-com/assets/bins/gfl-releases/ --delete --force# Install from source
go install github.com/your-repo/gfl@latest
# Or download binary from releases
# https://github.com/your-repo/gfl/releasescd your-project
gfl init --nickname yourname# Start a new feature
gfl s user-authentication
# Publish your branch
gfl p
# Create a Pull Request
gfl pr --open
# Clean up merged branches
gfl sweep feature --confirm$ gfl -h
GFL - GitHub Flow CLI
Usage:
gfl [flags]
gfl [command]
Available Commands:
checkout 交互式的git分支切换 (alias: co)
completion Generate the autocompletion script for the specified shell
help Help about any command
hotfix 开始一个hotfix分支 (alias: hf)
init 初始化 Github Flow 配置
publish 发布当前分支 (alias: p)
release 创建发布版本
pr 创建 Pull Request (alias: rv)
start 开始一个新功能 (alias: s)
sweep 清理包含特定关键词的分支 (alias: clean, rm)
sync 同步远程仓库
tag 创建版本标签
version 获取程序版本
Flags:
-h, --help help for gfl
-v, --version show version
Use "gfl [command] --help" for more information about a command.👉 查看完整命令文档: docs/commands.md
- 🔧 智能分支管理 - 自动化的分支创建、命名和切换
- 🚀 快速工作流 - 简化 GitHub Flow 的每个步骤
- 🔀 PR 创建 - 一键创建 Pull Request 并在浏览器中打开
- 📦 版本管理 - 语义化版本控制和发布管理
- 🧹 分支清理 - 智能清理已合并和过期的分支
- ⚙️ 灵活配置 - 支持全局和本地配置文件
- 🎯 交互式界面 - 友好的命令行交互体验
- 🔍 调试支持 - 详细的执行日志和调试模式
gfl/
├── main.go # Entry point
├── cmd/ # Command implementations
│ ├── root.go # Root command
│ ├── start.go # Start feature command
│ ├── publish.go # Publish branch command
│ ├── pr.go # PR creation command
│ ├── release.go # Release management
│ └── ... # Other commands
├── utils/ # Utility functions
│ ├── config.go # Configuration management
│ ├── branch.go # Branch naming utilities
│ ├── git.go # Git operations
│ └── ... # Other utilities
├── docs/ # Documentation
│ ├── quick-start.md # Quick start guide
│ ├── commands.md # Complete command reference
│ ├── configuration.md # Configuration guide
│ └── best-practices.md # Best practices
├── .gfl.config.yml # Global configuration
├── .gfl.config.local.yml # Local configuration
└── README.md # This file
- Fork the repository
- Create your feature branch (
gfl s amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
gfl p) - Open a Pull Request (
gfl pr --open)
This project is licensed under the MIT License - see the LICENSE file for details.
🎉 Happy coding with GFL!
需要帮助?查看我们的完整文档或在 GitHub Issues 提问。
