{"id":15470435,"url":"https://github.com/luobin23628/gb","last_synced_at":"2026-04-17T07:31:43.821Z","repository":{"id":56848069,"uuid":"198982326","full_name":"luobin23628/gb","owner":"luobin23628","description":"GB是针对GitLab开发的一款管理工具，使用ruby开发，简化对多个git版本库的管理，方便代码同步及代码提交review。","archived":false,"fork":false,"pushed_at":"2019-11-08T06:05:26.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-27T00:12:23.429Z","etag":null,"topics":["gem","git","github","gitlab","merge","review","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luobin23628.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T08:52:51.000Z","updated_at":"2019-11-08T06:05:27.000Z","dependencies_parsed_at":"2022-08-20T22:00:37.920Z","dependency_job_id":null,"html_url":"https://github.com/luobin23628/gb","commit_stats":null,"previous_names":["luobin23628/gitl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/luobin23628/gb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luobin23628%2Fgb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luobin23628%2Fgb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luobin23628%2Fgb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luobin23628%2Fgb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luobin23628","download_url":"https://codeload.github.com/luobin23628/gb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luobin23628%2Fgb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31919894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["gem","git","github","gitlab","merge","review","ruby"],"created_at":"2024-10-02T02:04:39.661Z","updated_at":"2026-04-17T07:31:43.797Z","avatar_url":"https://github.com/luobin23628.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gb\nGB是针对GitLab开发的一款管理工具，使用ruby开发，简化对多个git版本库的管理，方便代码同步及代码提交review。\n\n## 安装\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'gb'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install gb\n\n## 使用\n\n### 1、创建gb配置文件Gb.yml\n```ruby\n#创建本地文件Gb.yml，根据提示输入Gitlab的private token\ngb create\n\n#或通过在线url地址下载Gb.yml\ngb create --config_url=[url]\n```\n\n### 2、gb初始化，下载代码\n```ruby\ngb init\n```\n\n### 3、开启gb工作区\n开启gb工作区，指定本地工作分支名称和远程跟踪分支\\\n--force选项可以忽略工作分支存在校验\n```ruby\ngb start dev-v3.10.0 dev\n```\n\n### 4、同步工作区代码\n开启工作区以后，通过\n```ruby\ngb sync\n```\n可以把远程分支代码同步到本地工作区，实现代码更新\n\n### 4、提交review\n当您本地git提交代码到本地工作分支，需要提交merge request时，通过命令\n```ruby\ngb review\n```\n自动同步本地工作分支代码到远程，并提交merge request\n\n### 5、其他命令\n```ruby\n#查看本地工作区信息\ngb workspace\n\n#查看本地代码提交情况，类似git status\ngb status\n\n#提交merge request，可以自由指定发起merge的分支，并且不会同步本地代码\ngb merge dev master\n\n#遍历工作执行命令\ngb forall --c=\"git pull\"\n\n#创建远程tag\ngb create-tag master release_v3.9.1\n\n#删除远程tag\ngb delete-tag release_v3.9.1\n \n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/luobin23628/gb. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Gb project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/gb/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluobin23628%2Fgb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluobin23628%2Fgb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluobin23628%2Fgb/lists"}