📦 Git Tool — Git 工具
v1.0.0Useful Git commands for 仓库 management. Use when user needs to manage git repositories, 创建 branches, view 历史, stash changes, or automate git...
详细分析 ▾
运行时依赖
版本
diff Show changes
安装命令
点击复制技能文档
Git 工具 实用的 Git 仓库管理命令
快速开始 # 初始化仓库 python scripts/git.py init
# 查看状态 python scripts/git.py status
用法 python scripts/git.py COMMAND [OPTIONS]
命令 init 初始化仓库 status 显示工作区状态 branch 列出分支 commit 创建提交 log 查看提交历史 stash 暂存更改 diff 显示差异
示例 # 初始化 python scripts/git.py init
# 状态 python scripts/git.py status
# 查看日志 python scripts/git.py log --oneline
# 创建分支 python scripts/git.py branch new-feature
# 暂存更改 python scripts/git.py stash save "work in progress"
# 提交 python scripts/git.py commit -m "Update files"
功能 仓库初始化 分支管理 提交创建 历史查看 暂存操作 差异查看