Post-Radicle sync at 2025-06-05 01:07:56
This commit is contained in:
parent
d4edf2afd8
commit
bf03d19403
29 changed files with 351 additions and 1 deletions
69
docs/gitlab/CLI-ONLY_workflow_gitlab_ubuntu.md
Normal file
69
docs/gitlab/CLI-ONLY_workflow_gitlab_ubuntu.md
Normal file
|
@ -0,0 +1,69 @@
|
|||
### 📘 `CLI-ONLY_workflow_gitlab_ubuntu.md`
|
||||
|
||||
```markdown
|
||||
## 📘 `CLI-ONLY_workflow_gitlab_ubuntu.md`
|
||||
|
||||
### 📌 Purpose
|
||||
|
||||
Set up, initialize, and push a GitLab repo using only the terminal — no browser required.
|
||||
|
||||
---
|
||||
|
||||
### 🪐 Step-by-Step CLI Workflow
|
||||
|
||||
#### 1. Install everything you need
|
||||
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt install git curl -y
|
||||
curl -s https://raw.githubusercontent.com/profclems/glab/trunk/scripts/install.sh | sudo bash
|
||||
````
|
||||
|
||||
#### 2. Configure your Git identity
|
||||
|
||||
```bash
|
||||
git config --global user.name "Your Name"
|
||||
git config --global user.email "your_email@example.com"
|
||||
```
|
||||
|
||||
#### 3. Authenticate with GitLab
|
||||
|
||||
```bash
|
||||
glab auth login
|
||||
```
|
||||
|
||||
Use **SSH** and paste your **Personal Access Token** (create one at [https://gitlab.com/-/profile/personal\_access\_tokens](https://gitlab.com/-/profile/personal_access_tokens))
|
||||
|
||||
---
|
||||
|
||||
#### 4. Initialize your project
|
||||
|
||||
```bash
|
||||
mkdir myproject
|
||||
cd myproject
|
||||
git init
|
||||
touch README.md
|
||||
git add .
|
||||
git commit -m "Initial commit"
|
||||
```
|
||||
|
||||
#### 5. Create GitLab repo via CLI
|
||||
|
||||
```bash
|
||||
glab repo create myproject --visibility public --confirm
|
||||
```
|
||||
|
||||
#### 6. Push your changes
|
||||
|
||||
```bash
|
||||
git push -u origin master
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
✅ Done. You've created and linked a GitLab repository entirely from the CLI.
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue