https://github.com/fa7ad/git-init-lab
Create a repo, locally and on gitlab.com
https://github.com/fa7ad/git-init-lab
Last synced: about 1 year ago
JSON representation
Create a repo, locally and on gitlab.com
- Host: GitHub
- URL: https://github.com/fa7ad/git-init-lab
- Owner: fa7ad
- License: gpl-3.0
- Created: 2015-11-09T00:23:56.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T04:00:35.000Z (over 10 years ago)
- Last Synced: 2025-02-05T19:13:26.642Z (over 1 year ago)
- Language: Shell
- Size: 0 Bytes
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-init-lab
---
Initialize an empty git repo both **locally** and on [**gitlab**](https://gitlab.com/)
## Requirements
---
1. [jq](https://stedolan.github.io/jq/download/)
2. [git](http://www.git-scm.com/download/)
3. [curl](http://curl.haxx.se/download.html#LinuxUbuntu)
#### On Ubuntu
```bash
sudo apt-get install jq git curl
```
## Installation
---
* **Download the main file**
```bash
sudo curl -fsSL -o /usr/local/bin/git-init-lab https://raw.github.com/fa7ad/git-init-lab/master/git-init-lab
```
* **Make the downloaded file executable**
```bash
sudo chmod +x /usr/local/bin/git-init-lab
```
* **Create the config file and populate it**
```
nano ~/.gitlab.token
# Paste in the private key from https://gitlab.com/profile/account and save the file using ^O and then exit using ^X
```
* **Done**
Now, use either **git init-lab** or **git-init-lab**
## Usage
```bash
git-init-lab
```
**Example:**
```bash
git-init-lab my-config "My personal configuration files"
```
## License
[GPL3](https://www.gnu.org/copyleft/gpl.html)