Git::Gitlab

日本語

Command line tool for Gitlab

Installation

Add this line to your application's Gemfile:

gem 'git-gitlab'

And then execute:

$ bundle

Or install it yourself as:

$ gem install git-gitlab

Usage

Set up

Config some setting

git config --global gitlab.url http://gitlab.example.com/
git config --global gitlab.token GITLAB_SECRET_TOKEN
git config gitlab.project NAMESPACE/PROJECT

if your remote repository is not origin

git config gitlab.remote REMOTE

Let' run and Confirm setting

git gitlab

Create Merge Request

git gitlab merge SOURCE_BRANCH TARGET_BRANCH --assign USER_NAME

Get Mergerequest list

git gitlab merge --list

Show Issue by ID

git gitlab issue ISSUE_ID

Code Review

git gitlab review MERGEREQUEST_ID

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request