{"id":20237802,"url":"https://github.com/fantasticlbp/gitworkflow","last_synced_at":"2026-06-23T13:32:44.869Z","repository":{"id":97340261,"uuid":"200025623","full_name":"FantasticLBP/GitWorkflow","owner":"FantasticLBP","description":"开发工程中以脚本的方式使用 Git 的 workflow","archived":false,"fork":false,"pushed_at":"2019-08-01T11:02:38.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-13T19:40:30.709Z","etag":null,"topics":["cli","github-actions","shell","workflow"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FantasticLBP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-01T09:59:09.000Z","updated_at":"2020-08-17T06:50:29.000Z","dependencies_parsed_at":"2023-06-30T01:47:07.139Z","dependency_job_id":null,"html_url":"https://github.com/FantasticLBP/GitWorkflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FantasticLBP/GitWorkflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FGitWorkflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FGitWorkflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FGitWorkflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FGitWorkflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FantasticLBP","download_url":"https://codeload.github.com/FantasticLBP/GitWorkflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FantasticLBP%2FGitWorkflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34691837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","github-actions","shell","workflow"],"created_at":"2024-11-14T08:28:54.434Z","updated_at":"2026-06-23T13:32:44.850Z","avatar_url":"https://github.com/FantasticLBP.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 工程开发 Gitflow Cli 库简介\n\n\n## 目的\n\n规范git操作，脚本实行gitflow\n\n\n## 辅助库项目地址：\n\n[项目地址](https://github.com/FantasticLBP/GitWorkflow)\n\n\n## 项目目录\n\n```\n.\n├── README.md\n├── export.sh\n├── bin\n│   ├── batchCrtBr\n│   ├── crtBr\n│   ├── crtTag\n│   ├── delBr\n│   ├── featureFinish\n│   ├── featureStart\n│   ├── releaseStart\n│   ├── releaseFinish\n│   ├── cli_update.sh\n│   ├── setUp.sh\n\n\n```\n\n## 使用\n\n1. 把项目clone到本地\n\n     `git clone git@github.com:FantasticLBP/GitWorkflow.git`\n\n2. 把项目目录中的bin添加到bash的PATH\n\n\t执行工程下面的 `./exportPath.sh` 脚本。剩下的配置在脚本内部自动完成了。\n\t\n\t- 进入目录，给脚本添加权限。`chmod +x exportPath.sh`\n\t- 执行脚本。`./exportPath.sh`\n\t\n\t原理：\n\tshell的配置文件。其中是用bash的 请在~/.目录下修改编辑 .bashrc；使用oh_my_zsh的 请在~/.目录下修改编辑 .zshrc（推荐使用 iterm2+oh_my_zsh）。比如我的bin目录的路径是：`/Users/liubinpeng/WorkSpace/IOS/sdg_frontend_gitflowcli/bin`，就需要在上述的配置文件里增加一行：`export PATH=/Users/liubinpeng/WorkSpace/IOS/sdg_frontend_gitflowcli/bin:$PATH`\n\n3.  cli库需要更新时使用 `./cli_update.sh`,就会自动pull最新的cli下来。\n\n\n## 功能说明（功能名称对应的就是文件名称）\n\n### setUp\n\n在需要使用的库下使用setUp.sh 帮助建立一份配置文件 以解决不同项目生产分支和开发分支名不同的问题。\n\n\n### featureStart\n\n开始一个新功能开发时使用。\n使用方法 ： 在工程相应根目录下执行 `featureStart`\n\n\n### featureFinish\n\n完成一个功能开发需要提测时使用 会把当前分支合并develop后推到develop 会自动执行release start\n使用方法 ： 在工程相应根目录下执行 `featureFinish`\n\n\n### releaseStart\n\n需要提测一个功能开发的时候 会从合并过feature的dev分支拉取一个release分支。\n使用方法 ： 在工程相应根目录下执行 `releaseStart`\n\n\n### releaseFinish\n\n发布一个功能时使用 mergermaster后 推到master 打tag 完成发布\n使用方法 ： 在工程相应根目录下执行 `releaseFinish `\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticlbp%2Fgitworkflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffantasticlbp%2Fgitworkflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffantasticlbp%2Fgitworkflow/lists"}