Skip to content

bor-sh/git-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intro

Simple git extension to interact with GitLab from command line.

API: https://gitlab.com/gitlab-org/gitlab-ce/tree/master/doc/api

Prerequisite

Libsaas package and gitlab extension see: https://gitlab.com/bor-sh-infrastructure/libsaas_gitlab/tree/master#README

Installation if prerequisites are met

sudo python setup.py install

Configuration

global:
git config --global gitlab.url    "http://your-server-url"
git config --global gitlab.token  "your-token"

local in each repository:
git config gitlab.url   "http://your-server-url"
git config gitlab.token "your-token"

Usage

All commands

git lab -h

For each command get help by git gitlab command -h and further infos what needs to be done is provided.

For example creating merge request. If you are on the repository cloned and tracked on any gitlab server referenced as remote.

git lab mr

All parameters are optional source, target branch and title if not provided will be derived from repository and current branch itself.

About

yet another git extension to interact with gitlab per command line - https://gitlab.com/bor-sh/git-gitlab

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages