Skip to main content

GitGitLab integrates Gitlab in your git flow.

With GitGitlab, you can create projects, clone them and set them as remote source without leaving the command line.

Installation

sudo pip install gitgitlab

Example

$ git init
$ git touch 'readme.txt'
$ git add readme.txt
$ git commit -am 'initial commit'
$ git lab create -t my_project            # Creates project my_project and adds it as remote
  Project my_project created on Gitlab
$ git remotes
  gitlab

Command overview

git lab list

List your Gitlab projects

git lab create <project name>

Create a project on Gitlab

git lab track <project name>

Set this project as remote for your local repository.

git lab open <project name>

Open a Gitlab project page. If <project name> is omitted, uses the project on the ‘gitlab’ remote of the repository on the current directory.

git lab clone

Clone a Gitlab project.

git lab auth

Reset the Gitlab authorization token.

Listing your projects

git lab list lists all the projects that you own and their repository url.

Creating a new project

git lab create <project_name> creates a new private project on Gitlab.

git lab create <project_name> –track creates a new private project and sets it up as remote.

Setting up an existing project to track the local repository

git lab track <project_name> Adds a gitlab project as remote.

Opening the project page

git lab open <project_name> Opens the project page on the default browser.

Cloning a project

git lab clone <project_name> Clones the project.

Obtaining help

git lab help

Overview.

git lab <command> –help

Help for a specific command.

Using it from Python

To use gitgitlab from Python, import gitgitlab.client.

Using a custom Gitlab server

By default, gitgitlab uses https://gitlab.com as the Gitlab server url. If you are using your own Gitlab server, you can configure it using git config.

Configure your custom Gitlab server globally:

$ git config --global --replace-all gitlab.url <your server url>

Configure your custom Gitlab server only for the current repository:

$ git config --replace-all gitlab.url <your server url>

gitgitlab will try to connect to <your server url>/api/v3

More information

See also the project documentation.

Metadata

Release files for GitGitlab 1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GitGitlab 1.16
File Size Uploaded
GitGitlab-1.16.tar.gz 5.0 kB Details

Release files / GitGitlab-1.16.tar.gz

Download URL GitGitlab-1.16.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5962a477e0f1607298c0d8e483a4dfe512f08962f4ae4bd56b8c42d555dc657c
BLAKE2b-256 checksum
How to use checksums
c5beb6f5f2ba7cd332e19b4bc4190b009a6a2db336defa300f59fbeb9e6a18fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.16 This release

1 release file

1.15

1 release file

1.14

1 release file

1.13

1 release file

1.12

1 release file

1.11

1 release file

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page