https://github.com/lorenzleutgeb/git-lab
https://github.com/lorenzleutgeb/git-lab
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lorenzleutgeb/git-lab
- Owner: lorenzleutgeb
- License: gpl-3.0
- Created: 2022-01-24T12:36:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T12:38:13.000Z (over 3 years ago)
- Last Synced: 2025-01-17T16:56:01.347Z (4 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `git-lab`
## Prerequisites
* `jq`
* `curl`
* `grep`
* Core Utilities## Installation
Add this repository to your path:
```sh
export PATH=$PATH:$PWD
````git` will then automatically pick up `git-lab` as the subcommand `git lab`.
See also .## Configuration
Populate `$XDG_CONFIG/git-lab/config.json`. Example:
```json
{
"defaultEndpoint": "example",
"endpoints": {
"example": {
"protocol": "https",
"host": "git.example.com",
"root": "/api/v4",
"token": "[SECRET]"
}
}
}
```Verify your configuration with `git lab config` (or `git-lab-config`).
"Endpoints" aim to make it possible to communicate with different GitLab
installations. As of 2021-02, only the "default endpoint" is used.## Usage
`git lab config` and `git lab sync` can be run outside a Git repository.
Other commands must be run in a Git repository, and will work within its
context.